I have develop logic for connect particular device from a list of devices. Now I need logic for disconnect for particular device which I have connected.
I have develop logic for connect particular device from a list of devices. Now I need logic for disconnect for particular device which I have connected.
Hi,
Not sure what you are looking for, but a disconnect is simply done by calling: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga4031d0e4034c6f5900ad6d35b763fb0d
You can find the message sequence charts here:
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___b_l_e___g_a_p___c_o_n_n___m_s_c.html
Simply call sd_ble_gap_disconnect() and wait for BLE_GAP_EVT_DISCONNECTED.
Kenneth
Hi,
Not sure what you are looking for, but a disconnect is simply done by calling: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga4031d0e4034c6f5900ad6d35b763fb0d
You can find the message sequence charts here:
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.0.0/group___b_l_e___g_a_p___c_o_n_n___m_s_c.html
Simply call sd_ble_gap_disconnect() and wait for BLE_GAP_EVT_DISCONNECTED.
Kenneth