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

Data Structures

struct  XiaomiAESVector
class  XiaomiListener
struct  XiaomiParseResult


bool parse_xiaomi_value (uint8_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 219 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 131 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 83 of file xiaomi_ble.cpp.

◆ parse_xiaomi_value()

bool esphome::xiaomi_ble::parse_xiaomi_value ( uint8_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 307 of file xiaomi_ble.cpp.