2v02 breaks setAdvertising on puck.js

Posted on
  • My puck stopped advertising my services after updating to 2v02.
    I've tried:

    • resetting
    • hard resetting
    • flashing multiple times

    I can confirm that reverting to 2v01 resolved this issue.

    I've just used the demo code from the docs:

    NRF.setAdvertising({
      0x180F : [95]
    });
    

    The service did not show up in nRF connect or EspruinoHub.

  • Thanks - that's particularly odd as I've recently used exactly that on a project. I'll look into it in Monday though

  • Phew - just tested this, and it's not a complete disaster.

    If you:

    • Connect via BLE
    • Upload NRF.setAdvertising({ 0x180F : [95] });`
    • Disconnect via BLE

    Then it doesn't work - however if NRF.setAdvertising is called when you're not connected via BLE (like in most cases) then it does appear to still work fine.

    I'll still try and get this fixed as soon as possible though - issue filed for it here: https://github.com/espruino/Espruino/iss­ues/1659

  • Ok, it's now fixed in cutting edge builds. I'll do some more testing and make a release soon - I'm supposedly on holiday next week but it'd be good to get something out as soon as I can.

  • Thanks. I'll test the cutting edge build asap. :)

  • I was just about to write a post about it. Testing now..

  • Service data is back with 2.02.1!
    Thanks @Gordon

  • Quick update - bit of a delay getting builds up again as it seems NFC isn't working on any of the boards in the 2v03 build now

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

2v02 breaks setAdvertising on puck.js

Posted by Avatar for fiws @fiws

Actions