Hello,
I am using CC2541 controller and exploring SimpleBLEPeripheral example code.
As part of simpleGATTprofile.c I mapped simpleProfileChar1 to "Upper Temperature Threshold". This value will be always a positive value.
simpleProfileChar2 I want to map to "Lower Temperature Threshold". This value will be always a negative value.
For this I changed variable from uint8 to int8.
static int8 simpleProfileChar2 = 0;
My queries are:
1) But I am getting compile warning. Whether we can store 'Negative values'.
2) How to handle different formats in SimpleGATTprofile.c
https://www.bluetooth.com/specifications/assigned-numbers/format-types
Thanks & Regards
Vishnu Beema