1.1.2.1.1.4.38 BLE_GAP_SetAdvParams

C

uint16_t BLE_GAP_SetAdvParams(BLE_GAP_AdvParams_T *p_advParams);

Description

Set 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. Categories of advertising APIs and events for details of advertising APIs.

BLE_GAP_AdvInit is required for this API.

Parameters

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

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully set advertising parameters.
MBA_RES_OOMInternal memory allocation failure.