You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Argh. Yes, I can see how that would be a problem.

    Just writing E.setPassword("getoffmypuck");E.lockCons­ole() is probably a good start :)

    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 :)

About

Avatar for Gordon @Gordon started