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

Data Structures

struct  XiaomiAESVector
 
class  XiaomiListener
 
struct  XiaomiParseResult
 

Functions

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 251 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 150 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 101 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 339 of file xiaomi_ble.cpp.