nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_le_clear_adv_sets()

uint8_t sdc_hci_cmd_le_clear_adv_sets ( void )

#include <softdevice_controller/include/sdc_hci_cmd_le.h>

LE Clear Advertising Sets.

The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.8.60

This command is used to remove all existing advertising sets from the Controller.

Note: All advertising sets are cleared on HCI reset.

Errors:

See Section 4.5.2 for a list of error types and descriptions.

Type   Condition                                                        Error code
MC     Advertising or periodic advertising is enabled on the            Command Disallowed
       advertising set.                                                 (0x0C)

Event(s) generated (unless masked away):

When the HCI_LE_Clear_Advertising_Sets command has completed, an HCI_Command_Complete event shall be generated.

Return values
0if success.
Returns
Returns value between 0x01-0xFF in case of error. See Vol 2, Part D, Error for a list of error codes and descriptions.