The proper documentation for it is generated when I next do a release, so apart from http://www.espruino.com/Puck.js+Security you have to look at the source (which is used to generate the documentation).
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 proper documentation for it is generated when I next do a release, so apart from http://www.espruino.com/Puck.js+Security you have to look at the source (which is used to generate the documentation).
For example setSecurity is here: https://github.com/espruino/Espruino/blob/master/libs/bluetooth/jswrap_bluetooth.c#L2493
Then you have the passkey event, passkeyRequest event and sendPasskey (just do a work search for them in quotes in the above file).
I'm not sure how you'd go about actually forcing bonding though - I believe you can do so from the iOS app though?