You can use NRF.connect/disconnect events to figure out when a central is connected to you or not: http://www.espruino.com/Reference#l_NRF_connect
NRF.connect/disconnect
I'd have thought that would do you, but you can also use the oddly named NRF.getSecurityStatus().connected to 'poll' as well: http://www.espruino.com/Reference#l_NRF_getSecurityStatus
NRF.getSecurityStatus().connected
That almost does what I've been looking for. But is there a way to tell if the Espruino Web IDE is connected to a Bangle.js 2?
@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.
You can use
NRF.connect/disconnect
events to figure out when a central is connected to you or not: http://www.espruino.com/Reference#l_NRF_connectI'd have thought that would do you, but you can also use the oddly named
NRF.getSecurityStatus().connected
to 'poll' as well: http://www.espruino.com/Reference#l_NRF_getSecurityStatus