![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | ble_adv | Bluetooth LE advertising instance. |
| [in] | mode | Desired advertising mode. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_INVALID_STATE | Library is not initialized. |
| NRF_ERROR_NULL | ble_adv is NULL. |
| NRF_ERROR_INVALID_PARAM | Invalid parameters. |