ESPHome  1.16.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
 
 ESPDEPRECATED ("Use get_tx_powers() instead") optional< int8_t > get_tx_power() 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
 
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_ {}
 

Detailed Description

Definition at line 70 of file esp32_ble_tracker.h.

Member Function Documentation

◆ address()

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

Definition at line 78 of file esp32_ble_tracker.h.

◆ address_str()

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

Definition at line 521 of file esp32_ble_tracker.cpp.

◆ address_uint64()

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

Definition at line 527 of file esp32_ble_tracker.cpp.

◆ ESPDEPRECATED()

esphome::esp32_ble_tracker::ESPBTDevice::ESPDEPRECATED ( "Use get_tx_powers() instead"  ) const
inline

Definition at line 84 of file esp32_ble_tracker.h.

◆ 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 80 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 100 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 82 of file esp32_ble_tracker.h.

◆ get_rssi()

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

Definition at line 81 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 371 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 318 of file esp32_ble_tracker.cpp.

Field Documentation

◆ ad_flag_

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

Definition at line 120 of file esp32_ble_tracker.h.

◆ address_

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

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

◆ appearance_

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

Definition at line 119 of file esp32_ble_tracker.h.

◆ manufacturer_datas_

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

Definition at line 122 of file esp32_ble_tracker.h.

◆ name_

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

Definition at line 117 of file esp32_ble_tracker.h.

◆ rssi_

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

Definition at line 116 of file esp32_ble_tracker.h.

◆ service_datas_

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

Definition at line 123 of file esp32_ble_tracker.h.

◆ service_uuids_

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

Definition at line 121 of file esp32_ble_tracker.h.

◆ tx_powers_

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

Definition at line 118 of file esp32_ble_tracker.h.


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