9 namespace esp32_ble_tracker {
44 if (service_data.uuid == this->uuid_) {
45 this->
trigger(service_data.data);
53 uint64_t address_ = 0;
70 if (manufacturer_data.uuid == this->uuid_) {
71 this->
trigger(manufacturer_data.data);
79 uint64_t address_ = 0;
95 void play(Ts...
x)
override {
void set_manufacturer_uuid128(uint8_t *uuid)
ESPBTAdvertiseTrigger(ESP32BLETracker *parent)
void on_scan_end() override
void set_manufacturer_uuid32(uint32_t uuid)
void register_listener(ESPBTDeviceListener *listener)
void set_manufacturer_uuid16(uint16_t uuid)
ESP32BLETracker * parent_
BLEEndOfScanTrigger(ESP32BLETracker *parent)
void set_service_uuid32(uint32_t uuid)
void set_service_uuid16(uint16_t uuid)
const std::vector< ServiceData > & get_manufacturer_datas() const
bool parse_device(const ESPBTDevice &device) override
ESP32BLEStartScanAction(ESP32BLETracker *parent)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
void set_service_uuid128(uint8_t *uuid)
bool parse_device(const ESPBTDevice &device) override
TEMPLATABLE_VALUE(bool, continuous) void play(Ts... x) override
void set_address(uint64_t address)
static ESPBTUUID from_uint32(uint32_t uuid)
BLEServiceDataAdvertiseTrigger(ESP32BLETracker *parent)
bool parse_device(const ESPBTDevice &device) override
std::vector< uint64_t > address_vec_
static ESPBTUUID from_uint16(uint16_t uuid)
const std::vector< ServiceData > & get_service_datas() const
void play(Ts... x) override
uint64_t address_uint64() const
BLEManufacturerDataAdvertiseTrigger(ESP32BLETracker *parent)
bool parse_device(const ESPBTDevice &device) override
void set_address(uint64_t address)
Implementation of SPI Controller mode.
static ESPBTUUID from_raw(const uint8_t *data)
ESP32BLETracker * parent_
void set_addresses(const std::vector< uint64_t > &addresses)
void set_scan_continuous(bool scan_continuous)
Helper class to easily give an object a parent of type T.