This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using sd_ble_gap_disconnect for Disconnection with different Bluetooth status codes

Hey,

Is it not possible to use any Bluetooth status codes for disconnection when calling sd_ble_gap_disconnect?

for example this is not working (I do not actually disconnect)

sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR );

I have noticed that disconnection actually works with 

BLE_HCI_CONN_INTERVAL_UNACCEPTABLE and BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION,

However it did not actually disconnect with 

 BLE_HCI_AUTHENTICATION_FAILURE and BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR

What is the reason for this? are there any other disconnection reasons / Bluetooth status codes I can use for disconnection?

I wish to convey different disconnection reasons to my central.

Thanks!

Parents Reply Children
No Data
Related