BLE_GAP_SetExtAdvData

C

uint16_t BLE_GAP_SetExtAdvData(BLE_GAP_ExtAdvDataParams_T *p_advDataParam);

Description

Configures extended advertising data.

Note

This API can be called at any time after creating an advertising set with BLE_GAP_SetExtAdvParams, regardless of whether advertising is enabled or disabled. This API is part of the extended advertising feature and is disallowed if any legacy advertising feature API has been used prior. Initialization with BLE_GAP_AdvInit or BLE_GAP_ExtAdvInit is required before calling this API.

Parameters

ParameterDescription
[in] p_advDataParamPointer to the structure containing extended advertising data parameters.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully configures extended advertising data.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.
MBA_RES_UNKNOWN_ADV_IDUnknown advertising identifier.