pub unsafe extern "C" fn ble_gap_conn_find_by_addr(
addr: *const ble_addr_t,
out_desc: *mut ble_gap_conn_desc,
) -> c_int
Expand description
Searches for a connection with a peer with the specified address. If a matching connection is found, the supplied connection descriptor is filled correspondingly.
@param addr The ble address of a connected peer device to search for. @param out_desc On success, this is populated with information relating to the matching connection. Pass NULL if you don’t need this information.
@return 0 on success, BLE_HS_ENOTCONN if no matching connection was found.