Function nrf_softdevice_s140::sd_ble_gap_adv_stop
source · 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} @mmsc{@ref BLE_GAP_WL_SHARE_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.