ble_gap_conn_find
int
ble_gap_conn_find(
uint16_t handle,
struct ble_gap_conn_desc *out_desc
)
Description
Searches for a connection with the specified handle. If a matching connection is found, the supplied connection descriptor is filled correspondingly.
Parameters
Parameter | Description |
---|
handle | The connection handle to search for. |
out_desc | On success, this is populated with information relating to the matching connection. Pass NULL if you don't need this information. |
Returned values
Value | Condition |
---|
0 | Success. |
BLE_HS_ENOTCONN | No matching connection was found. |