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

st_ble_dev_addr_t is the type of bluetooth device address(BD_ADDR). More...

Data Fields

uint8_t addr [BLE_BD_ADDR_LEN]
 BD_ADDR. More...
 
uint8_t type
 Bluetooth address type. More...
 

Detailed Description

st_ble_dev_addr_t is the type of bluetooth device address(BD_ADDR).

Note
The BD address setting format is little endian.
If the address is "AA:BB:CC:DD:EE:FF", set the byte array in the order {0xFF, 0xEE, 0xDD, 0xCC, 0xBB, 0xAA}.

Field Documentation

◆ addr

uint8_t st_ble_dev_addr_t::addr[BLE_BD_ADDR_LEN]

BD_ADDR.

◆ type

uint8_t st_ble_dev_addr_t::type

Bluetooth address type.

macro description
BLE_GAP_ADDR_PUBLIC(0x00) Public Address.
BLE_GAP_ADDR_RAND(0x01) Random Address.