[][src]Function apache_nimble_sys::ble_gap_disc_cancel

pub unsafe extern "C" fn ble_gap_disc_cancel() -> c_int

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.

@return 0 on success; BLE_HS_EALREADY if there is no discovery procedure to cancel; Other nonzero on unexpected error.