• Hi,
    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

  • Hi,

    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

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Change Bluetooth Mac address on nrf52/ruuvitag devices

Posted by Avatar for giowild @giowild

Actions