hi, I have a question as the title.Is that api sd_ble_gap_connect_cancel? thank you.
hi, I have a question as the title.Is that api sd_ble_gap_connect_cancel? thank you.
If you are looking to disconnect from a established connection, I believe you want to use something like this: err_code = sd_ble_gap_disconnect(get_conn_handle(),BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
The sd_ble_gap_connect_cancel appears to me to be for canceling an ongoing connection attempt that hasn't yet established a connection.
If you are looking to disconnect from a established connection, I believe you want to use something like this: err_code = sd_ble_gap_disconnect(get_conn_handle(),BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
The sd_ble_gap_connect_cancel appears to me to be for canceling an ongoing connection attempt that hasn't yet established a connection.