Hi,
I am using nrf52832 with softdevice s132. The peripheral device is nrf52832 and central device is a mobile app. I want to disable BLE in nrf52832 and I am using this:
uint32_t disable_ble(void) { if (m_conn_handle != BLE_CONN_HANDLE_INVALID) { err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); if (err_code != NRF_SUCCESS) { return err_code; } } err_code = sd_ble_gap_adv_stop(m_advertising.adv_handle); return err_code; }