fix: Setting Tuya string DP value (#2394)

This commit is contained in:
irtimaled 2021-09-26 01:27:43 -07:00 committed by GitHub
parent 95a6715b2b
commit bdcffc7ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,7 +479,7 @@ void Tuya::set_string_datapoint_value(uint8_t datapoint_id, const std::string &v
for (char const &c : value) { for (char const &c : value) {
data.push_back(c); data.push_back(c);
} }
this->send_datapoint_command_(datapoint->id, datapoint->type, data); this->send_datapoint_command_(datapoint_id, TuyaDatapointType::STRING, data);
} }
void Tuya::set_enum_datapoint_value(uint8_t datapoint_id, uint8_t value) { void Tuya::set_enum_datapoint_value(uint8_t datapoint_id, uint8_t value) {