H2 read Float BLE Characteristic
Posted: Wed Nov 07, 2018 7:05 pm
Hi,
My project is designed around two tasks :
1 - First task for global init and periodical sensors reading
2 - Second task is running a gatt_server with gatts_services_table initialization.
One of my sensor return a float value, and i want to map it on a BLE characteristic.
Reading the various examples given with the ESP-IDF and various topics on reading BLE characteristic, it seems that the characterics values are always managed as a string ? is it possible to set directly a float value using the esp_ble_gatts_set_attr_value ? In this case, what is the way to define the characteristic in the service table ?
I try to used the native Gatts-server API.
Thanks a lot for your responses.
Regards.
My project is designed around two tasks :
1 - First task for global init and periodical sensors reading
2 - Second task is running a gatt_server with gatts_services_table initialization.
One of my sensor return a float value, and i want to map it on a BLE characteristic.
Reading the various examples given with the ESP-IDF and various topics on reading BLE characteristic, it seems that the characterics values are always managed as a string ? is it possible to set directly a float value using the esp_ble_gatts_set_attr_value ? In this case, what is the way to define the characteristic in the service table ?
I try to used the native Gatts-server API.
Thanks a lot for your responses.
Regards.