Where did you find that code? E.setBootCode(..., true) isn't something I ever really recommend (especially with untested code) as it does always run regardless of what you do.
What did you use as the name? It would be handy to see if the issue can be reproduced here.
Is it possible you named it to the same name as another device, and you're actually trying to connect to the other device which does use a passcode?
holding buttton 1 and 2 reset and holding button 1 and 2 and then realsing button 2 reboot. No menus, no apps.
When you do that (booting with BTN1 held down) can you then connect without a passcode?
Because it's possible that somehow a passcode did get set (maybe via code that was uploaded that uses NRF.setSecurity) and was then executed at boot. Assuming you really did run the code above then hopefully booting with BTN1 held down would stop all other code apart from that one line being executed.
Also did you try connecting with another device like a phone? It's possible your PC got confused by the name change...
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.
Where did you find that code?
E.setBootCode(..., true)
isn't something I ever really recommend (especially with untested code) as it does always run regardless of what you do.What did you use as the name? It would be handy to see if the issue can be reproduced here.
Is it possible you named it to the same name as another device, and you're actually trying to connect to the other device which does use a passcode?
When you do that (booting with BTN1 held down) can you then connect without a passcode?
Because it's possible that somehow a passcode did get set (maybe via code that was uploaded that uses
NRF.setSecurity
) and was then executed at boot. Assuming you really did run the code above then hopefully booting with BTN1 held down would stop all other code apart from that one line being executed.Also did you try connecting with another device like a phone? It's possible your PC got confused by the name change...