ESPHome  2024.12.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::esp32_ble_tracker::ESPBTDevice Class Reference

#include <esp32_ble_tracker.h>

Public Member Functions

void parse_scan_rst (const esp_ble_gap_cb_param_t::ble_scan_result_evt_param &param)
 
std::string address_str () const
 
uint64_t address_uint64 () const
 
const uint8_t * address () const
 
esp_ble_addr_type_t get_address_type () const
 
int get_rssi () const
 
const std::string & get_name () const
 
const std::vector< int8_t > & get_tx_powers () const
 
const optional< uint16_t > & get_appearance () const
 
const optional< uint8_t > & get_ad_flag () const
 
const std::vector< ESPBTUUID > & get_service_uuids () const
 
const std::vector< ServiceData > & get_manufacturer_datas () const
 
const std::vector< ServiceData > & get_service_datas () const
 
const esp_ble_gap_cb_param_t::ble_scan_result_evt_param & get_scan_result () const
 
bool resolve_irk (const uint8_t *irk) const
 
optional< ESPBLEiBeaconget_ibeacon () const
 

Protected Member Functions

void parse_adv_ (const esp_ble_gap_cb_param_t::ble_scan_result_evt_param &param)
 

Protected Attributes

esp_bd_addr_t address_
 
esp_ble_addr_type_t address_type_ {BLE_ADDR_TYPE_PUBLIC}
 
int rssi_ {0}
 
std::string name_ {}
 
std::vector< int8_t > tx_powers_ {}
 
optional< uint16_t > appearance_ {}
 
optional< uint8_t > ad_flag_ {}
 
std::vector< ESPBTUUIDservice_uuids_ {}
 
std::vector< ServiceDatamanufacturer_datas_ {}
 
std::vector< ServiceDataservice_datas_ {}
 
esp_ble_gap_cb_param_t::ble_scan_result_evt_param scan_result_ {}
 

Detailed Description

Definition at line 63 of file esp32_ble_tracker.h.

Member Function Documentation

◆ address()

const uint8_t* esphome::esp32_ble_tracker::ESPBTDevice::address ( ) const
inline

Definition at line 71 of file esp32_ble_tracker.h.

◆ address_str()

std::string esphome::esp32_ble_tracker::ESPBTDevice::address_str ( ) const

Definition at line 652 of file esp32_ble_tracker.cpp.

◆ address_uint64()

uint64_t esphome::esp32_ble_tracker::ESPBTDevice::address_uint64 ( ) const

Definition at line 658 of file esp32_ble_tracker.cpp.

◆ get_ad_flag()

const optional<uint8_t>& esphome::esp32_ble_tracker::ESPBTDevice::get_ad_flag ( ) const
inline

Definition at line 80 of file esp32_ble_tracker.h.

◆ get_address_type()

esp_ble_addr_type_t esphome::esp32_ble_tracker::ESPBTDevice::get_address_type ( ) const
inline

Definition at line 73 of file esp32_ble_tracker.h.

◆ get_appearance()

const optional<uint16_t>& esphome::esp32_ble_tracker::ESPBTDevice::get_appearance ( ) const
inline

Definition at line 79 of file esp32_ble_tracker.h.

◆ get_ibeacon()

optional<ESPBLEiBeacon> esphome::esp32_ble_tracker::ESPBTDevice::get_ibeacon ( ) const
inline

Definition at line 91 of file esp32_ble_tracker.h.

◆ get_manufacturer_datas()

const std::vector<ServiceData>& esphome::esp32_ble_tracker::ESPBTDevice::get_manufacturer_datas ( ) const
inline

Definition at line 83 of file esp32_ble_tracker.h.

◆ get_name()

const std::string& esphome::esp32_ble_tracker::ESPBTDevice::get_name ( ) const
inline

Definition at line 75 of file esp32_ble_tracker.h.

◆ get_rssi()

int esphome::esp32_ble_tracker::ESPBTDevice::get_rssi ( ) const
inline

Definition at line 74 of file esp32_ble_tracker.h.

◆ get_scan_result()

const esp_ble_gap_cb_param_t::ble_scan_result_evt_param& esphome::esp32_ble_tracker::ESPBTDevice::get_scan_result ( ) const
inline

Definition at line 87 of file esp32_ble_tracker.h.

◆ get_service_datas()

const std::vector<ServiceData>& esphome::esp32_ble_tracker::ESPBTDevice::get_service_datas ( ) const
inline

Definition at line 85 of file esp32_ble_tracker.h.

◆ get_service_uuids()

const std::vector<ESPBTUUID>& esphome::esp32_ble_tracker::ESPBTDevice::get_service_uuids ( ) const
inline

Definition at line 81 of file esp32_ble_tracker.h.

◆ get_tx_powers()

const std::vector<int8_t>& esphome::esp32_ble_tracker::ESPBTDevice::get_tx_powers ( ) const
inline

Definition at line 77 of file esp32_ble_tracker.h.

◆ parse_adv_()

void esphome::esp32_ble_tracker::ESPBTDevice::parse_adv_ ( const esp_ble_gap_cb_param_t::ble_scan_result_evt_param &  param)
protected

Definition at line 492 of file esp32_ble_tracker.cpp.

◆ parse_scan_rst()

void esphome::esp32_ble_tracker::ESPBTDevice::parse_scan_rst ( const esp_ble_gap_cb_param_t::ble_scan_result_evt_param &  param)

Definition at line 425 of file esp32_ble_tracker.cpp.

◆ resolve_irk()

bool esphome::esp32_ble_tracker::ESPBTDevice::resolve_irk ( const uint8_t *  irk) const

Definition at line 707 of file esp32_ble_tracker.cpp.

Field Documentation

◆ ad_flag_

optional<uint8_t> esphome::esp32_ble_tracker::ESPBTDevice::ad_flag_ {}
protected

Definition at line 111 of file esp32_ble_tracker.h.

◆ address_

esp_bd_addr_t esphome::esp32_ble_tracker::ESPBTDevice::address_
protected
Initial value:
{
0,
}

Definition at line 103 of file esp32_ble_tracker.h.

◆ address_type_

esp_ble_addr_type_t esphome::esp32_ble_tracker::ESPBTDevice::address_type_ {BLE_ADDR_TYPE_PUBLIC}
protected

Definition at line 106 of file esp32_ble_tracker.h.

◆ appearance_

optional<uint16_t> esphome::esp32_ble_tracker::ESPBTDevice::appearance_ {}
protected

Definition at line 110 of file esp32_ble_tracker.h.

◆ manufacturer_datas_

std::vector<ServiceData> esphome::esp32_ble_tracker::ESPBTDevice::manufacturer_datas_ {}
protected

Definition at line 113 of file esp32_ble_tracker.h.

◆ name_

std::string esphome::esp32_ble_tracker::ESPBTDevice::name_ {}
protected

Definition at line 108 of file esp32_ble_tracker.h.

◆ rssi_

int esphome::esp32_ble_tracker::ESPBTDevice::rssi_ {0}
protected

Definition at line 107 of file esp32_ble_tracker.h.

◆ scan_result_

esp_ble_gap_cb_param_t::ble_scan_result_evt_param esphome::esp32_ble_tracker::ESPBTDevice::scan_result_ {}
protected

Definition at line 115 of file esp32_ble_tracker.h.

◆ service_datas_

std::vector<ServiceData> esphome::esp32_ble_tracker::ESPBTDevice::service_datas_ {}
protected

Definition at line 114 of file esp32_ble_tracker.h.

◆ service_uuids_

std::vector<ESPBTUUID> esphome::esp32_ble_tracker::ESPBTDevice::service_uuids_ {}
protected

Definition at line 112 of file esp32_ble_tracker.h.

◆ tx_powers_

std::vector<int8_t> esphome::esp32_ble_tracker::ESPBTDevice::tx_powers_ {}
protected

Definition at line 109 of file esp32_ble_tracker.h.


The documentation for this class was generated from the following files: