ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
xiaomi_ble.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::xiaomi_ble
 

Functions

 esphome::xiaomi_ble::ESPHOME_LOG_TAG (TAG, "xiaomi_ble")
 
bool esphome::xiaomi_ble::parse_xiaomi_value (uint16_t value_type, const uint8_t *data, uint8_t value_length, XiaomiParseResult &result)
 
bool esphome::xiaomi_ble::parse_xiaomi_message (const uint8_t *message, size_t size, XiaomiParseResult &result)
 
optional< XiaomiParseResult > esphome::xiaomi_ble::parse_xiaomi_header (const uint8_t *raw, size_t size)
 Parses the frame control and product id; the caller checks the 0xFE95 UUID and filters duplicates.
 
bool esphome::xiaomi_ble::decrypt_xiaomi_payload (uint8_t *raw, size_t size, const uint8_t *bindkey, uint64_t address)
 Decrypts the payload of raw in place and clears its encryption flag.