BLE connect device but don't have connect handle

When I am in BLE_GAP_CONNECTED event, the connection handle is empty?

This is log:

[17:54:15.251]input←◆<info> app: Received BLE event: 16
<info> app: Connected.
<info> app: Connection handle: 0x0
<info> app: Connected to device with handle: 0x0000

<info> app: Received BLE event: 35

[17:54:55.269]input←◆<info> app: Received BLE event: 17
<info> app: Disconnected, reason 34.

In connect event, I can't get the connect handle. Why?

Thanks response.

Parents Reply
  • Hello,

    0x3002 is BLE_ERROR_INVALID_CONN_HANDLE, so I understand that you would think that. 

    Where do you try to disconnect? Could it be that you are trying to do that in the disconnected event? If so, it would already have been disconnected. 

    If it is not in the BLE_GAP_EVT_DISCONNECTED event, from where are you trying to call sd_ble_gap_disconnect? 

    BR,

    Edvin

Children
Related