通过什么函数可以发送自定义的结构体消息,包括设备ID,设备类型和控制信息;试过了通过GATT_WriteLongCharValue()或者是GATT_Notification()都只能发送一个字符串类型的。我想自己定义一个结构体,然后把结构体中的消息发送给其他设备,不知有什么函数可以使用?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
通过什么函数可以发送自定义的结构体消息,包括设备ID,设备类型和控制信息;试过了通过GATT_WriteLongCharValue()或者是GATT_Notification()都只能发送一个字符串类型的。我想自己定义一个结构体,然后把结构体中的消息发送给其他设备,不知有什么函数可以使用?