1.1.2.1.1.4.34 BLE_GAP_RemoveExtAdvSet
C
uint16_t BLE_GAP_RemoveExtAdvSet(uint8_t advHandle);
Description
Remove an advertising set.
Note
This API belongs to extended advertising feature. It will be disallowed if any one API that belongs to legacy advertising feature is issued before. Categories of advertising APIs and events for details of advertising APIs.
BLE_GAP_AdvInit and BLE_GAP_ExtAdvInit are required for this API.
Parameters
Parameter | Description |
---|---|
[in] advHandle | Advertising handle. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully remove an advertising set. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed. |
MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |