This simple code [1] works on one Puck.js(8a78) but doesn't on another one (5f09).
Both firm versions are 1v91. Other functions like ble_eddystone or ble_ibeacon works well on 5f09.
So I wonder why only NRF.setServices does not work on it.
Followed by Troubleshooting guide, I've tried to reset 5f09, but the issue is not gone.
How to test this device?
Thanks,
Takayuki
[1]
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)]
}}});
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.
Hi all,
This simple code [1] works on one Puck.js(8a78) but doesn't on another one (5f09).
Both firm versions are 1v91. Other functions like
ble_eddystone
orble_ibeacon
works well on 5f09.So I wonder why only NRF.setServices does not work on it.
Followed by Troubleshooting guide, I've tried to reset 5f09, but the issue is not gone.
How to test this device?
Thanks,
Takayuki
[1]