int ble_gap_disc_cancel(void)
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.
None
Value | Condition |
---|---|
0 | Success. |
BLE_HS_EALREADY | There is no discovery procedure to cancel. |
Core return code | Unexpected error. |