sl_bt_evt_scanner_scan_reportScanner
Deprecated and replaced by new sl_bt_evt_scanner_legacy_advertisement_report and sl_bt_evt_scanner_extended_advertisement_report events
Data Structures | |
struct | sl_bt_evt_scanner_scan_report_s |
Data structure of the scan_report event. | |
Macros | |
#define | sl_bt_evt_scanner_scan_report_id 0x010500a0 |
Identifier of the scan_report event. | |
Detailed Description
Deprecated and replaced by new sl_bt_evt_scanner_legacy_advertisement_report and sl_bt_evt_scanner_extended_advertisement_report events
To use these new events, the application needs to include the bluetooth_feature_legacy_scanner or bluetooth_feature_extended_scanner component.
Reports an advertising or scan response packet from an advertising device that uses legacy or extended advertising PDUs.
Data Structure Documentation
◆ sl_bt_evt_scanner_scan_report_s
struct sl_bt_evt_scanner_scan_report_s |
Data structure of the scan_report event.
Data Fields | ||
---|---|---|
uint8_t | packet_type |
Bits 0..2 : advertising packet type
Bits 3..4 : Reserved for future Bits 5..6 : data completeness
Bit 7 : legacy or extended advertising
|
bd_addr | address |
Bluetooth address of the remote device |
uint8_t | address_type |
Advertiser address type. Values:
|
uint8_t | bonding |
Bonding handle if the remote advertising device has previously bonded with the local device. Values:
|
uint8_t | primary_phy |
Enum sl_bt_gap_phy_t. The PHY on which advertising packets are transmitted on the primary advertising channel. Ignore this field if the report is for a legacy advertising PDU. Values:
|
uint8_t | secondary_phy |
Enum sl_bt_gap_phy_t. The PHY on which advertising packets are transmitted on the secondary advertising channel. Ignore this field if the report is for a legacy advertising PDU. Values:
|
uint8_t | adv_sid |
Advertising set identifier |
int8_t | tx_power |
TX power value in the received packet header. Units: dBm
|
int8_t | rssi |
Signal strength indicator (RSSI) in the last received packet. Units: dBm
|
uint8_t | channel |
The channel number on which the last packet was received |
uint16_t | periodic_interval |
The periodic advertising interval. Value 0 indicates no periodic advertising. Otherwise,
|
uint8array | data |
Advertising or scan response data |