Recommended method to update BLE AD in nRF Connect/Zephyr at runtime

Currently advertising packet is built by macros, but the data types include const qualifiers.

What is the "proper" way to dynamically update advertising please? I need to change the manufacturer-specific data at runtime.

Using NCS 2.9.0

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents Reply Children
  • FYI that page is broken; the code snippets are missing (and doesn't even address my question anyway).

     

    But never mind, in trying to go through the code the penny dropped. For the benefit of anyone else looking, the pointer is a const, but the variable isn't. So I just update my mfg_data.