Hey! Could you help me out? How do I use your plugin in Blueprints to subscribe and read data from a BLE device, like a heart rate monitor? I guess I need to write to the CCCD to enable notifications — is there a way to do that through Blueprints?
Apologies for the late response only just saw this.
Use the subscribe for notifications node and pass in the related characteristic ID. You will then get data through the event that you pass in as a callback. This will continue until you stop the notifications or disconnect.
Check the manufacturer for how they implement their data, but due to most ID’s being reserved to avoid clashes I expect they will use this one.
They layout bit wise is as follows:
(uint8) 8 bits - Flags
– The first bit is for the heart rate data size, 0 being 8 bit, 1 being 16 bit
– The next 2 bits are for contact status, 3 means its working (Check the xml for what the others mean)
– The next bit is for if energy expenditure
– The next bit is for RR-Interval bit
(uint8) 8 bits or (uint16) 16 bits - Heart rate (Depend on if the flag is 0 or 1)
The following are only available if the flag is set: