ESPHome  2024.7.1
Data Structures | Functions
esphome::xiaomi_ble Namespace Reference

Data Structures

struct  XiaomiAESVector
class  XiaomiListener
struct  XiaomiParseResult


bool parse_xiaomi_value (uint16_t value_type, const uint8_t *data, uint8_t value_length, XiaomiParseResult &result)
bool parse_xiaomi_message (const std::vector< uint8_t > &message, XiaomiParseResult &result)
optional< XiaomiParseResultparse_xiaomi_header (const esp32_ble_tracker::ServiceData &service_data)
bool decrypt_xiaomi_payload (std::vector< uint8_t > &raw, const uint8_t *bindkey, const uint64_t &address)
bool report_xiaomi_results (const optional< XiaomiParseResult > &result, const std::string &address)

Function Documentation

◆ decrypt_xiaomi_payload()

bool esphome::xiaomi_ble::decrypt_xiaomi_payload ( std::vector< uint8_t > &  raw,
const uint8_t *  bindkey,
const uint64_t &  address 

Definition at line 234 of file xiaomi_ble.cpp.

◆ parse_xiaomi_header()

optional< XiaomiParseResult > esphome::xiaomi_ble::parse_xiaomi_header ( const esp32_ble_tracker::ServiceData service_data)

Definition at line 138 of file xiaomi_ble.cpp.

◆ parse_xiaomi_message()

bool esphome::xiaomi_ble::parse_xiaomi_message ( const std::vector< uint8_t > &  message,
XiaomiParseResult result 

Definition at line 90 of file xiaomi_ble.cpp.

◆ parse_xiaomi_value()

bool esphome::xiaomi_ble::parse_xiaomi_value ( uint16_t  value_type,
const uint8_t *  data,
uint8_t  value_length,
XiaomiParseResult result 

Definition at line 15 of file xiaomi_ble.cpp.

◆ report_xiaomi_results()

bool esphome::xiaomi_ble::report_xiaomi_results ( const optional< XiaomiParseResult > &  result,
const std::string &  address 

Definition at line 322 of file xiaomi_ble.cpp.