BLE_GAP_SetAdvParams

C

uint16_t BLE_GAP_SetAdvParams(BLE_GAP_AdvParams_T *p_advParams);

Description

Sets advertising parameters.

Note

This command shall not be issued when advertising is enabled. This API belongs to legacy advertising feature. It will be disallowed if any one API belongs extended advertising feature is issued before. Refer to Categories of advertising APIs and events for details of advertising APIs. The BLE_GAP_AdvInit function must be called prior to using this API.

Parameters

ParameterDescription
[in] p_advParamsPointer to advertising parameters buffer. See BLE_GAP_AdvParams_T.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sets advertising parameters.
MBA_RES_OOMInternal memory allocation failure occurred.