This works - but it looks like you changed it to display:0. I think the BLE stack gives INVALID_PARAM because it figures you can't have a passkey if it's not displayed anywhere so the user can read it.
I could be wrong here but my understanding was even if you scribbled "123456" on the side of the device or wrote it in a manual, that's enough to quality for display:1.
Tkank you, I will try this later!
It's unintuitive but somehow makes sense. It should then be reflected somewhere in the manual that some combinations are invalid.
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.
The reference shows:
This works - but it looks like you changed it to
display:0
. I think the BLE stack givesINVALID_PARAM
because it figures you can't have a passkey if it's not displayed anywhere so the user can read it.I could be wrong here but my understanding was even if you scribbled "123456" on the side of the device or wrote it in a manual, that's enough to quality for
display:1
.