Ahh, getAddress is always the hard-coded address, not the one you set with setAddress. Use something like NRF connect on a phone to scan for devices to see the real address.
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.
Ahh,
getAddress
is always the hard-coded address, not the one you set withsetAddress
. Use something likeNRF connect
on a phone to scan for devices to see the real address.You want
random
addresses - there's a bit of info here: http://www.espruino.com/About+Bluetooth+LE#connecting-puck-as-central-I just tried here and it works fine - but you do need to disconnect from BLE first with
NRF.disconnect()
before the changes take effect I imagine.No - you can either
reset()
the device, or do something like :