5static const char *
const TAG =
"tuya.automation";
11 if (dp.
type != expected) {
12 ESP_LOGW(TAG,
"Tuya sensor %u expected datapoint type %#02hhX but got %#02hhX", dp.
id,
13 static_cast<uint8_t
>(expected),
static_cast<uint8_t
>(dp.
type));
TuyaBitmaskDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
TuyaBoolDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
TuyaEnumDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
void register_listener(uint8_t datapoint_id, const std::function< void(TuyaDatapoint)> &func)
TuyaIntDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
TuyaRawDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
TuyaStringDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
TuyaUIntDatapointUpdateTrigger(Tuya *parent, uint8_t sensor_id)
void check_expected_datapoint(const TuyaDatapoint &dp, TuyaDatapointType expected)
Providing packet encoding functions for exchanging data with a remote host.
std::vector< uint8_t > value_raw