Currently I am set timeout to one second and then on BLE_GAP_EVT_TIMEOUT:
- modify data
- advertising_init();
- advertising_start();
Are there more correct ways to solve this task?
My main concern that ble_advdata_set is not thread safe and if I will modify data and call ble_advdata_set once a second I can send some corrupted packets.