I know it is possible to change Bluetooth address using Nordic sdk sd_ble_gap_address_set function but I can't find how to do it with Espruino NRF class.
Is there a way to change Bluetooth address with Espruino on nrf based devices(like ruuvitag)?
If not, is it possible to enrich espruino by adding Mac address as option in the options array of the NRF. setadvertising(data, options) method?
This could be a very useful feature to continuously change Mac address for security reasons
Just added as NRF.setAddress. If you grab a new build from http://www.espruino.com/binaries/travis/master/ it should have it in.
If you've got questions related to non-espruino boards please can you post them in the 'Other Boards' section in future though?
Great! Thanks for fast change and response. Works like a charm!!!
Of course! sorry for the mistake
using v2.06 NRF.setaddress(xxx) works well until reset where the beacon retrieves it's original address even if using save();
May you please help.
Just put NRF.setAddress(...) inside a function called onInit - or use the 'Save to Flash' functionality to ensure all your code gets run at boot: http://www.espruino.com/Saving
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem