Hi, One thing I do notice is:
NRF.setAdvertising({ manufacturer: 0x0590, //<============================= 0x1811 : [presses], 0x180F : [E.getBattery()-1], 0x1809 : [Math.round(E.getTemperature())] });
The manufacturer mine is for manufacturerData and if used should be in the second argument. I'd just remove it as it could be causing issues.
manufacturer
Also, I think you changed the wrong thing on advertised_services... The default example is:
"advertised_services" : { "ffff" : { "name" : "level" } },
and I think you wanted to do:
"advertised_services" : { "1811" : { "name" : "presses" } },
Looks like you changed name to presses rather than level :)
name
presses
level
@Gordon started
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, One thing I do notice is:
The
manufacturer
mine is for manufacturerData and if used should be in the second argument. I'd just remove it as it could be causing issues.Also, I think you changed the wrong thing on advertised_services... The default example is:
and I think you wanted to do:
Looks like you changed
name
topresses
rather thanlevel
:)