MediaTek-Labs / Arduino-Add-On-for-LinkIt-SDK

Arduino board support package for LinkIt 7697
https://docs.labs.mediatek.com/resource/linkit7697-arduino/en
34 stars 33 forks source link

How to enable the remote Notification on LinkIt 7697 and receieve notification value ? #98

Open Alex-SL-TSL opened 6 years ago

Alex-SL-TSL commented 6 years ago

I want to connect to a heart rate band with LinkIt 7697, and receive the BLE notification value (heart rate).

LinkIt 7697 is a central device in my case. According to the example "LBLE > ConnectPeripheral", I can read and write characteristic value,which properties is read &write.

When trying to enable the notification,it failed. How to enable the remote Notification on LinkIt 7697 and receieve notification value ?

I can receive the heart rate notification value from uuid:0x2A37 with GATTTool, after I enable notification by writing value"0100" on uuid:0x2902.

pablosun commented 6 years ago

Hi, this is because 0x2902 is a descriptor rather than a characteristic. At this moment, the LBLEClient class does not enumerate / acess the descriptors. However, this should be relatively straightforward to implement. We should be able to add APIs to write descriptors in upcoming releases.