ble_gap_disc_cancel

int
ble_gap_disc_cancel(void)

Description

Cancels the discovery procedure currently in progress. A success return code indicates that scanning has been fully aborted; a new discovery or connect procedure can be initiated immediately.

Parameters

None

Returned values

ValueCondition
0Success.
BLE_HS_EALREADYThere is no discovery procedure to cancel.
Core return codeUnexpected error.