One question - Did you see somewhat erratic times between the .on('discover') event firing? I'm running essentially the same code as you linked and I'm seeing anywhere between 1.5 seconds and 20 seconds between each .on('discover') event.
Not ideal when I'm trying to use the Puck.js as a light switch!
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.
Thanks, @knolleary, that's really useful!
One question - Did you see somewhat erratic times between the
.on('discover')
event firing? I'm running essentially the same code as you linked and I'm seeing anywhere between 1.5 seconds and 20 seconds between each.on('discover')
event.Not ideal when I'm trying to use the Puck.js as a light switch!