ESPHome 2026.8.0b4
Loading...
Searching...
No Matches
esphome::ble_device_base::BLEServiceDataAdvertiseTrigger Class Referencefinal

#include <automation.h>

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

Public Member Functions

template<typename Hub >
 BLEServiceDataAdvertiseTrigger (Hub *parent)
 
void set_service_uuid16 (uint64_t uuid)
 
void set_service_uuid32 (uint64_t uuid)
 
void set_service_uuid128 (const uint8_t *uuid)
 
void set_address (uint64_t address)
 
bool parse_device (const ESPBTDevice &device) override
 
- Public Member Functions inherited from esphome::Trigger< const adv_data_t & >
void trigger (const Ts &...x) ESPHOME_ALWAYS_INLINE
 Inform the parent automation that the event has triggered.
 
void set_automation_parent (Automation< Ts... > *automation_parent)
 
void stop_action ()
 Stop any action connected to this trigger.
 
bool is_action_running ()
 Returns true if any action connected to this trigger is running.
 
- Public Member Functions inherited from esphome::ble_device_base::ESPBTDeviceListener
virtual ~ESPBTDeviceListener ()=default
 
virtual void on_scan_end ()
 Called at the end of each scan duration period.
 

Protected Attributes

ESPBTUUID uuid_ {}
 
uint64_t address_ {0}
 
bool has_address_ {false}
 
- Protected Attributes inherited from esphome::Trigger< const adv_data_t & >
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 41 of file automation.h.

Constructor & Destructor Documentation

◆ BLEServiceDataAdvertiseTrigger()

template<typename Hub >
esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::BLEServiceDataAdvertiseTrigger ( Hub * parent)
inlineexplicit

Definition at line 43 of file automation.h.

Member Function Documentation

◆ parse_device()

bool esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::parse_device ( const ESPBTDevice & device)
inlineoverridevirtual

Implements esphome::ble_device_base::ESPBTDeviceListener.

Definition at line 54 of file automation.h.

◆ set_address()

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

Definition at line 49 of file automation.h.

◆ set_service_uuid128()

void esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::set_service_uuid128 ( const uint8_t * uuid)
inline

Definition at line 47 of file automation.h.

◆ set_service_uuid16()

void esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::set_service_uuid16 ( uint64_t uuid)
inline

Definition at line 45 of file automation.h.

◆ set_service_uuid32()

void esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::set_service_uuid32 ( uint64_t uuid)
inline

Definition at line 46 of file automation.h.

Field Documentation

◆ address_

uint64_t esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::address_ {0}
protected

Definition at line 69 of file automation.h.

◆ has_address_

bool esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::has_address_ {false}
protected

Definition at line 70 of file automation.h.

◆ uuid_

ESPBTUUID esphome::ble_device_base::BLEServiceDataAdvertiseTrigger::uuid_ {}
protected

Definition at line 68 of file automation.h.


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