ESPHome  2024.10.0
Public Member Functions | Protected Attributes
esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger:
esphome::Trigger< const adv_data_t &> esphome::esp32_ble_tracker::ESPBTDeviceListener

Public Member Functions

 BLEServiceDataAdvertiseTrigger (ESP32BLETracker *parent)
 
void set_address (uint64_t address)
 
void set_service_uuid16 (uint16_t uuid)
 
void set_service_uuid32 (uint32_t uuid)
 
void set_service_uuid128 (uint8_t *uuid)
 
bool parse_device (const ESPBTDevice &device) override
 
- Public Member Functions inherited from esphome::Trigger< const adv_data_t &>
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

uint64_t address_ = 0
 
ESPBTUUID uuid_
 
- Protected Attributes inherited from esphome::Trigger< const adv_data_t &>
Automation< Ts... > * automation_parent_
 
- Protected Attributes inherited from esphome::esp32_ble_tracker::ESPBTDeviceListener
ESP32BLETrackerparent_ {nullptr}
 

Detailed Description

Definition at line 31 of file automation.h.

Constructor & Destructor Documentation

◆ BLEServiceDataAdvertiseTrigger()

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

Definition at line 33 of file automation.h.

Member Function Documentation

◆ parse_device()

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

Implements esphome::esp32_ble_tracker::ESPBTDeviceListener.

Definition at line 39 of file automation.h.

◆ set_address()

void esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::set_address ( uint64_t  address)
inline

Definition at line 34 of file automation.h.

◆ set_service_uuid128()

void esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::set_service_uuid128 ( uint8_t *  uuid)
inline

Definition at line 37 of file automation.h.

◆ set_service_uuid16()

void esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::set_service_uuid16 ( uint16_t  uuid)
inline

Definition at line 35 of file automation.h.

◆ set_service_uuid32()

void esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::set_service_uuid32 ( uint32_t  uuid)
inline

Definition at line 36 of file automation.h.

Field Documentation

◆ address_

uint64_t esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::address_ = 0
protected

Definition at line 53 of file automation.h.

◆ uuid_

ESPBTUUID esphome::esp32_ble_tracker::BLEServiceDataAdvertiseTrigger::uuid_
protected

Definition at line 54 of file automation.h.


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