Argh. Yes, I can see how that would be a problem.
Just writing E.setPassword("getoffmypuck");E.lockConsole() is probably a good start :)
E.setPassword("getoffmypuck");E.lockConsole()
Or you can do the following:
var locked = true; NRF.setServices(undefined,{uart:!locked}); setWatch(function() { locked = !locked; digitalPulse(locked?LED1:LED2,1,100); NRF.setServices(undefined,{uart:!locked}); }, BTN, {repeat:true, edge:"rising", debounce:50});
Tap in once, the light flashes green, and it's connectable via serial. Tap it again, it flashes red, and it's not.
But yes, I'll add security to my list of tutorials to write :)
@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.
Argh. Yes, I can see how that would be a problem.
Just writing
E.setPassword("getoffmypuck");E.lockConsole()
is probably a good start :)Or you can do the following:
Tap in once, the light flashes green, and it's connectable via serial. Tap it again, it flashes red, and it's not.
But yes, I'll add security to my list of tutorials to write :)