Yes, that works, tested it back and force - Thanks.
>NRF.setServices({
: 0x1809 : { // Health Thermometer
: 0x2A6E: { // Temperature
: readable: true,
: value : [E.getTemperature().toFixed(2)]
: }},
: 0x180F : { // Battery Service
: 0x2A19: { // Battery Level
: readable: true,
: value : [Puck.getBatteryPercentage().toFixed(0)]
:}}});
BLE Connected, so queueing service update for later
=undefined
>NRF.setServices({});
BLE Connected, so queueing service update for later
=undefined
>
Disconnected
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, that works, tested it back and force - Thanks.