Hello All,
I am working on the Nrf52810 with sdk 15.3.
When we connect device through nrf connect app (android) i wanted to disconnect after 1 min .
I have given timer in the connect case BLE_GAP_EVT_CONNECTED: case in the function static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
and i am using command to disconnect after 1 minute
err_code = sd_ble_gap_disconnect(p_ble_evt->evt.gattc_evt.conn_handle,
BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
APP_ERROR_CHECK(err_code);
But it is not working still showing connected in mobile.
What is the proper command / way to disconnect app through code ?
Please provide your valuable inputs.
Waiting for your response.
Thanks and Regards,
Rohit