|
ESPHome 2026.11.0b6
|
Data Structures | |
| struct | XiaomiAESVector |
| class | XiaomiDevice |
| A Xiaomi MiBeacon device: matches its address, decodes each frame once and hands it to publish_result(). More... | |
| class | XiaomiEncryptedDevice |
| A XiaomiDevice whose frames are encrypted with a bindkey. More... | |
| class | XiaomiListener |
| struct | XiaomiParseResult |
Functions | |
| ESPHOME_LOG_TAG (TAG, "xiaomi_ble") | |
| bool | parse_xiaomi_value (uint16_t value_type, const uint8_t *data, uint8_t value_length, XiaomiParseResult &result) |
| bool | parse_xiaomi_message (const uint8_t *message, size_t size, XiaomiParseResult &result) |
| optional< XiaomiParseResult > | 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 | 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. | |
| 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.
Definition at line 272 of file xiaomi_ble.cpp.
| esphome::xiaomi_ble::ESPHOME_LOG_TAG | ( | TAG | , |
| "xiaomi_ble" | ) |
| 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.
Definition at line 177 of file xiaomi_ble.cpp.
| bool esphome::xiaomi_ble::parse_xiaomi_message | ( | const uint8_t * | message, |
| size_t | size, | ||
| XiaomiParseResult & | result ) |
Definition at line 123 of file xiaomi_ble.cpp.
| bool esphome::xiaomi_ble::parse_xiaomi_value | ( | uint16_t | value_type, |
| const uint8_t * | data, | ||
| uint8_t | value_length, | ||
| XiaomiParseResult & | result ) |
Definition at line 30 of file xiaomi_ble.cpp.