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

ParameterDescription
handleThe connection handle to search for.
out_descOn success, this is populated with information relating to the matching connection. Pass NULL if you don't need this information.

Returned values

ValueCondition
0Success.
BLE_HS_ENOTCONNNo matching connection was found.