ESPHome  2022.5.1
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
 
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 76 of file esp32_ble_tracker.h.

Member Function Documentation

◆ address()

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

Definition at line 84 of file esp32_ble_tracker.h.

◆ address_str()

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

Definition at line 703 of file esp32_ble_tracker.cpp.

◆ address_uint64()

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

Definition at line 709 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 93 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 86 of file esp32_ble_tracker.h.

◆ get_appearance()

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

Definition at line 92 of file esp32_ble_tracker.h.

◆ get_ibeacon()

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

Definition at line 102 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 96 of file esp32_ble_tracker.h.

◆ get_name()

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

Definition at line 88 of file esp32_ble_tracker.h.

◆ get_rssi()

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

Definition at line 87 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 100 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 98 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 94 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 90 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 553 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 491 of file esp32_ble_tracker.cpp.

Field Documentation

◆ ad_flag_

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

Definition at line 122 of file esp32_ble_tracker.h.

◆ address_

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

Definition at line 114 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 117 of file esp32_ble_tracker.h.

◆ appearance_

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

Definition at line 121 of file esp32_ble_tracker.h.

◆ manufacturer_datas_

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

Definition at line 124 of file esp32_ble_tracker.h.

◆ name_

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

Definition at line 119 of file esp32_ble_tracker.h.

◆ rssi_

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

Definition at line 118 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 126 of file esp32_ble_tracker.h.

◆ service_datas_

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

Definition at line 125 of file esp32_ble_tracker.h.

◆ service_uuids_

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

Definition at line 123 of file esp32_ble_tracker.h.

◆ tx_powers_

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

Definition at line 120 of file esp32_ble_tracker.h.


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