nrf-softdevice-s113

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_gap_adv_stop(adv_handle: u8) -> u32
Expand description

@brief Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).

@mscs @mmsc{@ref BLE_GAP_ADV_MSC} @endmscs

@param[in] adv_handle The advertising handle that should stop advertising.

@retval ::NRF_SUCCESS The BLE stack has stopped advertising. @retval ::BLE_ERROR_INVALID_ADV_HANDLE Invalid advertising handle. @retval ::NRF_ERROR_INVALID_STATE The advertising handle is not advertising.