Hi,
The err_code shows NRF_ERROR_INVALID_STATE when called sd_ble_gap_adv_start(). I want to know why it happen, and how to handle it. This happened upon the ble disconnected.
Thanks a lot.
When you're disconnecting a link, are you waiting for the appropriate event (BLE_GAP_EVT_DISCONNECTED) back from the softdevice before starting the advertisement again? This is because sd_ble_gap_disconnect() will send a disconnect command over air before you're actually disconnected.
When you're disconnecting a link, are you waiting for the appropriate event (BLE_GAP_EVT_DISCONNECTED) back from the softdevice before starting the advertisement again? This is because sd_ble_gap_disconnect() will send a disconnect command over air before you're actually disconnected.