sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
464 stars 180 forks source link

Temperature which is send using BLEFloatCharacteristic is not readable by mobile apps #274

Closed mrdc closed 4 years ago

mrdc commented 4 years ago

Hello,

It looks like that using BLEFloatCharacteristic with temperature readings to send them via BLE make it unusable by mobile apps I've found (nRF Toolkit iOS, some swift apps). Apps don't expect float value in 4 byte and don't show any temp - they convert only the first byte (I suppose). Is it possible somehow to overcome the issue, so mobile apps can normally read temperature? Using BLEIntCharacteristic gives us less precision.

mrdc commented 4 years ago

Have fixed it.