nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_adv_start()

uint32_t ble_adv_start ( struct ble_adv * ble_adv,
enum ble_adv_mode mode )

#include <ble_adv.h>

Start advertising in given mode.

If the given advertising mode mode is not enabled, advertising is started in the next supported mode.

Parameters
[in]ble_advBluetooth LE advertising instance.
[in]modeDesired advertising mode.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_INVALID_STATELibrary is not initialized.
NRF_ERROR_NULLble_adv is NULL.
NRF_ERROR_INVALID_PARAMInvalid parameters.