I implemented manufacturer specific advertising to transmit important data without having to connect to the ble peripheral. These data can change over time so I need to be able to update them.
I adapted advertising_init. I also programmed a function to update the advertising data: the latter stops advertising, calls ble_advdata_set and then restarts advertising
All of this works fine until I connect to the peripheral using nrf-connect. After I disconnect, the manufacturer specific part of the advertising packet is wrong.
Shall I call ble_advdata_set again after disconnect and if so where is the best place to do it ?
I am using sdk 14.2 and the softdevice 132
Thanks in advance,
Christian