This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Advertizing multiple UUIDs (iBeacon)

Hi,

I want to advertise multiple UUIDs, one after another

Do I have to stop advertising, or is there a way, that I can update the struct in the background?

Currently we do it the following way:

  for ever {
        ble.init();
        change_mac(uids[i].mac); // patching the struct
        ble.stopAdvertising();
        set_payload(&ble, uids[i].bcn);  // accumulateAdvertisingPayload()
        ble.startAdvertising();
        nrf_delay_us(500*1000);     // Sleep for some time
    }
Related