BLE_GAP_ClearExtAdvSet
C
uint16_t BLE_GAP_ClearExtAdvSet(void);
Description
Removes all existing advertising sets.
Note
This API is part of the extended advertising feature. It is disallowed if any legacy advertising feature API has been issued prior to this call. See Categories of advertising APIs and events on advertising APIs. Initialization with BLE_GAP_AdvInit and BLE_GAP_ExtAdvInit is required before using this API.
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully removes all advertising sets. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |