The reason why the advertising completed.
Synopsis:
#include <btapi/btle.h>
typedef enum {
BT_LE_ADVERT_REASON_INTERNAL_TERMINATED = 0x00
BT_LE_ADVERT_REASON_INTERVAL_TIMEOUT = 0x01
BT_LE_ADVERT_REASON_CONNECTION_TERMINATED = 0x02
BT_LE_ADVERT_REASON_RESERVED = 0x03
BT_LE_ADVERT_REASON_RADIO_SHUTDOWN = 0x04
} bt_le_advert_complete_reason_t;
Data:
- BT_LE_ADVERT_REASON_INTERNAL_TERMINATED
- Internal stack terminated advertisements.
- BT_LE_ADVERT_REASON_INTERVAL_TIMEOUT
- Advertisement timed interval elapsed.
- BT_LE_ADVERT_REASON_CONNECTION_TERMINATED
- Advertisements terminated due to an incoming or outgoing connection.
- BT_LE_ADVERT_REASON_RESERVED
- Reserved for future use.
- BT_LE_ADVERT_REASON_RADIO_SHUTDOWN
- Advertisements terminated due to radio shutdown.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)