Just spend a few hours looking into this. If you'd put setSecurity after setServices it would have worked I believe, although there are some other issues.
passkey:"123456" isn't valid in setServices
If you specify lesc: true but then don't have it in setSecurity then it'll bond but you still won't be able to access
I don't believe the passkey is good enough for lesc - at least pairing with then enabled fails
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.
Just spend a few hours looking into this. If you'd put setSecurity after setServices it would have worked I believe, although there are some other issues.
passkey:"123456"
isn't valid in setServiceslesc: true
but then don't have it insetSecurity
then it'll bond but you still won't be able to accesslesc
- at least pairing with then enabled failsSo if you do the following, you should be good: