Worth adding that when you call setAdvertising, the values of battery/temp are set at the point that setAdvertising was called, so if you want them to update, you'll need to call it again every few minutes with setInterval
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, I think all you need is to make sure you keep setting everything you want advertised in setAdvertising. So for example:
Worth adding that when you call setAdvertising, the values of battery/temp are set at the point that setAdvertising was called, so if you want them to update, you'll need to call it again every few minutes with setInterval