Could you try checking with the nRF connect app on a phone?
nRF connect
It is possible it's something to do with your computer actually cacheing the manufacturerdata.
I just tried this here and your code works fine for me - albeit with huge amounts of extra counting because you don't have any debounce
@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.
Could you try checking with the
nRF connect
app on a phone?It is possible it's something to do with your computer actually cacheing the manufacturerdata.
I just tried this here and your code works fine for me - albeit with huge amounts of extra counting because you don't have any debounce