Hi all,
Im currently trying to use the heartrate sample project to perform adc reads and handle 0x0012 on Btool to get the values but it keeps on saying read not permitted
can anyone help me with this ?
thank you.
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.
Hi all,
Im currently trying to use the heartrate sample project to perform adc reads and handle 0x0012 on Btool to get the values but it keeps on saying read not permitted
can anyone help me with this ?
thank you.
Hey Husain,
First of all, heart rate data is available on handle 18 (At least in BLEv1.4 Build). Secondly, there is no read permission set in software for that characteristic;
// Heart Rate Measurement Value
{
{ ATT_BT_UUID_SIZE, heartRateMeasUUID },
0,
0,
&heartRateMeas
},
To set read permission, change to
// Heart Rate Measurement Value
{
{ ATT_BT_UUID_SIZE, heartRateMeasUUID },
GATT_PERMIT_READ,
0,
&heartRateMeas
},
Generally, you should use the CCD on handle 19; which you write 01:00 to, in order to enable automatically sent notifications. This way you don't have to "poll" every time you want to know the heart rate.
Best Regards
Joakim
Hi Joakim,
Thanks for your reply it worked. But now im having another problem i keep on getting attribute not found and i'm not sure why.
I inserted the ADC read into the Heartrate Notify function and im using AIN6 and the internal voltage.
But apparently there is no values in the attribute to read.
thanks
Husain