That looks great - thanks for posting all the code up!
In Espruino 1v95 I actually added the ability to set manufacturer data directly via setAdvertising - so you could actually remove all the low level Bluetooth stuff from initialiseAdvertisingPacket if you wanted to... Although having said that there's a lot to be said for having something that works on the firmware the Pucks come with out of the box :)
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.
That looks great - thanks for posting all the code up!
In Espruino 1v95 I actually added the ability to set manufacturer data directly via setAdvertising - so you could actually remove all the low level Bluetooth stuff from
initialiseAdvertisingPacket
if you wanted to... Although having said that there's a lot to be said for having something that works on the firmware the Pucks come with out of the box :)