![]() |
nrfxlib API 3.3.99
|
LE Advertising Set Terminated. More...
#include <sdc_hci_cmd_le.h>
Data Fields | |
| uint8_t | status |
| uint8_t | adv_handle |
| uint16_t | conn_handle |
| uint8_t | num_completed_ext_adv_events |
LE Advertising Set Terminated.
The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.7.65.18
This event indicates that the Controller has terminated advertising in the advertising sets specified by the Advertising_Handle parameter.
This event shall be generated every time connectable advertising in an advertising set results in a connection being created or because the advertising duration or the maximum number of extended advertising events has been reached. It is generated for both legacy and extended advertising. It shall not be generated if the Host disables the advertising set.
This event shall only be generated if advertising was enabled using the HCI_LE_Set_- Extended_Advertising_Enable command.
The Connection_Handle parameter is only valid when advertising ends because a connection was created.
If the Max_Extended_Advertising_Events parameter in the HCI_LE_Set_Extended_- Advertising_Enable command was non-zero, the Num_Completed_Extended_- Advertising_Events parameter shall be set to the number of completed extended advertising events the Controller had transmitted when either the duration elapsed or the maximum number of extended advertising events was reached; otherwise it shall be set to zero.
If advertising has terminated as a result of the advertising duration elapsing, the Status parameter shall be set to the error code Advertising Timeout (0x3C).
If advertising has terminated because the Max_Extended_Advertising_Events was reached, the Status parameter shall be set to the error code Limit Reached (0x43).