OK, that works - but I don't want battery and temp updated with button press, I want them only updated at the default advertising time and the button press only updated with the button being pressed. I was thinking I can just pop the buttonState on and off the setAdvertising array?
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.
OK, that works - but I don't want battery and temp updated with button press, I want them only updated at the default advertising time and the button press only updated with the button being pressed. I was thinking I can just pop the buttonState on and off the setAdvertising array?