ah ha - makes sense. Thanks.
What I was trying to do was make sure the advertising got through, which isn't always the case. So I was trying to always advertise the battery, except when the button is pushed in which case I wanted to run a count.
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.
ah ha - makes sense. Thanks.
What I was trying to do was make sure the advertising got through, which isn't always the case. So I was trying to always advertise the battery, except when the button is pushed in which case I wanted to run a count.