ESPHome  2022.11.3
Public Member Functions | Protected Member Functions
esphome::mopeka_ble::MopekaListener Class Reference

#include <mopeka_ble.h>

Inheritance diagram for esphome::mopeka_ble::MopekaListener:
esphome::esp32_ble_tracker::ESPBTDeviceListener

Public Member Functions

bool parse_device (const esp32_ble_tracker::ESPBTDevice &device) override
 Parse all incoming BLE payloads to see if it is a Mopeka BLE advertisement. More...
 
- Public Member Functions inherited from esphome::esp32_ble_tracker::ESPBTDeviceListener
virtual void on_scan_end ()
 
void set_parent (ESP32BLETracker *parent)
 

Protected Member Functions

bool parse_sync_button_ (const std::vector< uint8_t > &message)
 

Additional Inherited Members

- Protected Attributes inherited from esphome::esp32_ble_tracker::ESPBTDeviceListener
ESP32BLETrackerparent_ {nullptr}
 

Detailed Description

Definition at line 11 of file mopeka_ble.h.

Member Function Documentation

◆ parse_device()

bool esphome::mopeka_ble::MopekaListener::parse_device ( const esp32_ble_tracker::ESPBTDevice device)
overridevirtual

Parse all incoming BLE payloads to see if it is a Mopeka BLE advertisement.

Currently this supports the following products:

Mopeka Pro Check. If the sync button is pressed, report the MAC so a user can add this as a sensor.

Implements esphome::esp32_ble_tracker::ESPBTDeviceListener.

Definition at line 21 of file mopeka_ble.cpp.

◆ parse_sync_button_()

bool esphome::mopeka_ble::MopekaListener::parse_sync_button_ ( const std::vector< uint8_t > &  message)
protected

Definition at line 45 of file mopeka_ble.cpp.


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