ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::xiaomi_ble::XiaomiEncryptedDevice Class Reference

A XiaomiDevice whose frames are encrypted with a bindkey. More...

#include <xiaomi_ble.h>

Inheritance diagram for esphome::xiaomi_ble::XiaomiEncryptedDevice:
esphome::xiaomi_ble::XiaomiDevice esphome::ble_device_base::ESPBTDeviceListener esphome::xiaomi_cgd1::XiaomiCGD1 esphome::xiaomi_cgdk2::XiaomiCGDK2 esphome::xiaomi_cgg1::XiaomiCGG1 esphome::xiaomi_cgpr1::XiaomiCGPR1 esphome::xiaomi_lywsd02mmc::XiaomiLYWSD02MMC esphome::xiaomi_lywsd03mmc::XiaomiLYWSD03MMC esphome::xiaomi_mhoc401::XiaomiMHOC401 esphome::xiaomi_mjyd02yla::XiaomiMJYD02YLA esphome::xiaomi_rtcgq02lm::XiaomiRTCGQ02LM esphome::xiaomi_xmwsdj04mmc::XiaomiXMWSDJ04MMC

Public Member Functions

void set_bindkey (std::initializer_list< uint8_t > bindkey)
 
bool parse_device (const ble_device_base::ESPBTDevice &device) override
 
- Public Member Functions inherited from esphome::xiaomi_ble::XiaomiDevice
void set_address (uint64_t address)
 
- 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 Member Functions

void dump_bindkey_ (const char *tag) const
 
- Protected Member Functions inherited from esphome::xiaomi_ble::XiaomiDevice
bool parse_xiaomi_device_ (const ble_device_base::ESPBTDevice &device, const uint8_t *bindkey)
 Encrypted frames are dropped when bindkey is null.
 
virtual void publish_result (const XiaomiParseResult &result)=0
 

Protected Attributes

uint8_t bindkey_ [16] {}
 
- Protected Attributes inherited from esphome::xiaomi_ble::XiaomiDevice
uint64_t address_ {0}
 
optional< uint8_t > last_frame_count_
 

Detailed Description

A XiaomiDevice whose frames are encrypted with a bindkey.

Definition at line 92 of file xiaomi_ble.h.

Member Function Documentation

◆ dump_bindkey_()

void esphome::xiaomi_ble::XiaomiEncryptedDevice::dump_bindkey_ ( const char * tag) const
protected

Definition at line 465 of file xiaomi_ble.cpp.

◆ parse_device()

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

Reimplemented from esphome::xiaomi_ble::XiaomiDevice.

Definition at line 95 of file xiaomi_ble.h.

◆ set_bindkey()

void esphome::xiaomi_ble::XiaomiEncryptedDevice::set_bindkey ( std::initializer_list< uint8_t > bindkey)

Definition at line 470 of file xiaomi_ble.cpp.

Field Documentation

◆ bindkey_

uint8_t esphome::xiaomi_ble::XiaomiEncryptedDevice::bindkey_[16] {}
protected

Definition at line 102 of file xiaomi_ble.h.


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