Display Characteristic Value as a Number?
Posted: 16:47, 16 Sep 2015
Re: Display Characteristic Value as a Number?
Posted: 13:11, 22 Sep 2015
It is possible.
You'll need to call readCharacteristic() and wait for a reply from the remote device.
The reply has the type ArrayBuffer. You'll need to interpret it in the format of your number. There's a lot to choose from. Decimal string or binary? 8-bit, 16-bit or 32-bit? Big or little endian?
Here's an example that uses Uint8Array: https://github.com/evothings/evothings-examples/blob/master/examples/mbed-custom-gatt/app.js