sl_bt_evt_scanner_legacy_advertisement_reportScanner#
Reports an advertising data or scan response packet from an advertising device that uses legacy advertising PDUs.
Data Structures | |
struct | |
Data structure of the legacy_advertisement_report event. | |
Macros | |
#define | |
Identifier of the legacy_advertisement_report event. | |
Detailed Description#
Reports an advertising data or scan response packet from an advertising device that uses legacy advertising PDUs.
This event is used to report advertisements only if the application includes the bluetooth_feature_legacy_scanner or bluetooth_feature_extended_scanner component
Otherwise, the sl_bt_evt_scanner_scan_report event is used for maintaining the backwards compatibility.
Data Structure Documentation#
◆sl_bt_evt_scanner_legacy_advertisement_report_s#
struct sl_bt_evt_scanner_legacy_advertisement_report_s |
Data structure of the legacy_advertisement_report event.
Data Fields | |
---|---|
uint8_t | |
event_flags | The event type flag(s) in the advertisement packet. Value: One or more flags defined in Event Type Flags of Advertisement Reports |
address | Advertiser address |
uint8_t | |
address_type | Advertiser address type. Values:* 0: Public address |
1: Random address | | uint8_t | bonding | Bonding handle if the remote advertising device has previously bonded with the local device. Values:* SL_BT_INVALID_BONDING_HANDLE (0xff): No bonding
Other: Bonding handle | | int8_t | rssi | Signal strength indicator (RSSI) in the last received packet. Units: dBm* Range: -127 to +20 | | uint8_t | channel | The channel number on which the last packet was received | | bd_addr | target_address | The target address if the advertisement is from directed advertising, otherwise ignored | | uint8_t | target_address_type | The target address type if the advertisement is from directed advertising, otherwise ignored. Values:* 0: Public address
1: Random address | | uint8array | data | Advertising or scan response data. Ignore if this is directed advertising. |