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 BLE_GAP_ADV_CATS for details on advertising APIs. Initialization with BLE_GAP_AdvInit and BLE_GAP_ExtAdvInit is required before using this API.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully removes all advertising sets.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.