Which service and characteristics help me to send a float number?


#1

Hi?? Any help??

If there any example of this? I know battery service but it dosent work


#2

Hi,
if you use BLE_HRM to transfer data, you will use the function, but you need to convert float number to uint8_t [].

ble_error_t updateCharacteristicValue(GattAttribute::Handle_t attributeHandle,
const uint8_t *value,
uint16_t size,
bool localOnly = false) {
return gattServer().write(attributeHandle, value, size, localOnly);
}


#3

Don’t you have an example in python?


#4

No, I don’t have one in python but in Arduino