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.

HIDREMOTE例程处理usbdongle发送过来的数据问题



想改成对usbdongle通过 GATT_WriteCharValue 发送过来的数据,请问是在哪个回调函数接收到的数据的

  • jerry,

    以simpleBLEPeripheral工程为例,是在simpleGATprofile.c 中 simpleProfile_WriteAttrCB() 接收。

    其他工程的代码结构也一样类似。

  • 我用GATT_WriteCharValue写led output的值,central显示发送成功,但是peripheral simpleProfile_WriteAttrCB()的回调函数中,收到的UUID却是2902 即Client Characteristic Configuration,收到的值也不是我写入的值,表中led output对应的uuid应该是reportRefUUID  0x2908,问题是在hid中,所有类型报告uuid都是2908,那我需要怎么才能通过GATT_WriteCharValue更改相应的值?