What does it do when it's rebooted? How do you know it has rebooted?
I do exactly this:
Insert battery into Puck.js running 1v92
Connect Web IDE on a PC
Copy/paste exactly this into the left-hand side:
var serverAddress="xx:xx:xx:xx:xx:xx";
NRF.on('connect',function(addr) {
if (addr.split(' ')[0]!=serverAddress) {
NRF.disconnect();
}
});
Disconnect the PC
Try and connect with nRF connect - it shows connected and then disconnected straight after
Try again
and again, and again - still disconnected, and everything is fine
So I can't reproduce using the instructions you have given. Are you running with other code that you're not posting up? And are you sure it's 1v92? I know older versions did have some problems that sound exactly like you're describing
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.
What does it do when it's rebooted? How do you know it has rebooted?
I do exactly this:
Copy/paste exactly this into the left-hand side:
Disconnect the PC
Try and connect with nRF connect - it shows connected and then disconnected straight after
Try again
and again, and again - still disconnected, and everything is fine
So I can't reproduce using the instructions you have given. Are you running with other code that you're not posting up? And are you sure it's 1v92? I know older versions did have some problems that sound exactly like you're describing