You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi - that sounds like a good idea...

    But yes, multiple calls to NRF.setAdvertising() could overwrite each other. To work around it you could do:

    if (!Bangle.bleAdvert) Bangle.bleAdvert = {};
    function advertiseBattery() {
      Bangle.bleAdvert[0x180F] = [E.getBattery()];

    Then as long as other apps followed the same form they could all work together


Avatar for Gordon @Gordon started