ESPHome  2024.4.1
Public Member Functions | Protected Attributes
esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger:
esphome::Trigger< const ESPBTDevice &> esphome::esp32_ble_tracker::ESPBTDeviceListener

Public Member Functions

 ESPBTAdvertiseTrigger (ESP32BLETracker *parent)
 
void set_addresses (const std::vector< uint64_t > &addresses)
 
bool parse_device (const ESPBTDevice &device) override
 
- Public Member Functions inherited from esphome::Trigger< const ESPBTDevice &>
void trigger (Ts... x)
 Inform the parent automation that the event has triggered. More...
 
void set_automation_parent (Automation< Ts... > *automation_parent)
 
void stop_action ()
 Stop any action connected to this trigger. More...
 
bool is_action_running ()
 Returns true if any action connected to this trigger is running. More...
 
- Public Member Functions inherited from esphome::esp32_ble_tracker::ESPBTDeviceListener
virtual void on_scan_end ()
 
virtual bool parse_devices (esp_ble_gap_cb_param_t::ble_scan_result_evt_param *advertisements, size_t count)
 
virtual AdvertisementParserType get_advertisement_parser_type ()
 
void set_parent (ESP32BLETracker *parent)
 

Protected Attributes

std::vector< uint64_t > address_vec_
 
- Protected Attributes inherited from esphome::Trigger< const ESPBTDevice &>
Automation< Ts... > * automation_parent_
 
- Protected Attributes inherited from esphome::esp32_ble_tracker::ESPBTDeviceListener
ESP32BLETrackerparent_ {nullptr}
 

Detailed Description

Definition at line 10 of file automation.h.

Constructor & Destructor Documentation

◆ ESPBTAdvertiseTrigger()

esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger::ESPBTAdvertiseTrigger ( ESP32BLETracker parent)
inlineexplicit

Definition at line 12 of file automation.h.

Member Function Documentation

◆ parse_device()

bool esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger::parse_device ( const ESPBTDevice device)
inlineoverridevirtual

Implements esphome::esp32_ble_tracker::ESPBTDeviceListener.

Definition at line 15 of file automation.h.

◆ set_addresses()

void esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger::set_addresses ( const std::vector< uint64_t > &  addresses)
inline

Definition at line 13 of file automation.h.

Field Documentation

◆ address_vec_

std::vector<uint64_t> esphome::esp32_ble_tracker::ESPBTAdvertiseTrigger::address_vec_
protected

Definition at line 28 of file automation.h.


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