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
Parameter | Description |
---|---|
[in] p_advParams | Pointer to advertising parameters buffer. See BLE_GAP_AdvParams_T. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sets advertising parameters. |
MBA_RES_OOM | Internal memory allocation failure occurred. |