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