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
Parameter | Description |
---|---|
[in] p_advDataParam | Pointer to the structure containing extended advertising data parameters. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully configures extended advertising data. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |
MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |