Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
st_ble_gap_adv_rept_t Struct Reference

Advertising Report. More...

Data Fields

uint8_t num
 The number of Advertising Reports received. More...
 
uint8_t adv_type
 Type of Advertising Packet. More...
 
uint8_t addr_type
 Address type of the advertiser. More...
 
uint8_t * p_addr
 Address of the advertiser. More...
 
uint8_t len
 Length of Advertising data(in bytes). More...
 
int8_t rssi
 RSSI(in dBm). More...
 
uint8_t * p_data
 Advertising data/Scan Response Data. More...
 

Detailed Description

Advertising Report.

Field Documentation

◆ num

uint8_t st_ble_gap_adv_rept_t::num

The number of Advertising Reports received.

◆ adv_type

uint8_t st_ble_gap_adv_rept_t::adv_type

Type of Advertising Packet.

value description
0x00 Connectable and scannable undirected advertising(ADV_IND).
0x01 Connectable directed advertising(ADV_DIRECT_IND).
0x02 Scannable undirected advertising(ADV_SCAN_IND).
0x03 Non-connectable undirected advertising(ADV_NONCONN_IND).
0x04 Scan response(SCAN_RSP).

◆ addr_type

uint8_t st_ble_gap_adv_rept_t::addr_type

Address type of the advertiser.

value description
0x00 Public Address.
0x01 Random Address.
0x02 Public Identity Address which could be resolved in Controller.
0x03 Random Identity Address which could be resolved in Controller.

◆ p_addr

uint8_t* st_ble_gap_adv_rept_t::p_addr

Address of the advertiser.

Note
The BD address setting format is little endian.

◆ len

uint8_t st_ble_gap_adv_rept_t::len

Length of Advertising data(in bytes).

Valid range is 0 - 31.

◆ rssi

int8_t st_ble_gap_adv_rept_t::rssi

RSSI(in dBm).

Valid range is -127 <= tx_pwr <= 20 and 127.
If the tx_pwr is 127, it means that RSSI could not be acquired.

◆ p_data

uint8_t* st_ble_gap_adv_rept_t::p_data

Advertising data/Scan Response Data.