It could be that the Bangle doesn't automatically start the bonding procedure for a secure connection, and so the read fails. You could try startBonding?
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.
It could be that the Bangle doesn't automatically start the bonding procedure for a secure connection, and so the read fails. You could try
startBonding
?http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_startBonding
gatt.getSecurityStatus()
is also a good way to check the status of the link, like whether you are bonded or not