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

Change advertisement manuf_specific_data once a second

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.

Parents Reply Children
Related