nrf52840 last version of SDK
Hello I need help. I want to start ble_adv and then stop with a button signal and start again with another button signal. The idea is
Loop:
1) advertising_start();
2) sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
sd_ble_gap_adv_stop(m_conn_handle);
and again
1) advertising_start();
static void advertising_start(void) {
uint32_t err_code = ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
}
It doesn't work, at second time I call advertising_start(); the execution stop on the command advertising_start();
Any solutions???