11-04-2024, 01:21 PM
Friend, I know that, I did the procedure on the license, however, that is not the problem. I posted the image of the error next to it. I would really like your help. ERROR --->
src/esphome/components/tuya_iot/tuya_iot_component.cpp: In the lambda function:
src/esphome/components/tuya_iot/tuya_iot_component.cpp:167:96: error: Invalid initialization of reference of type 'const json_parse_t&' {aka 'const std::function<bool(ArduinoJson6185_D1::ObjectRef)>&'} of the expression of type 'esphome::tuya_iot::TuyaIotComponent:
ubscribe_json(const string&, const mqtt_json_callback_t&, uint8_t)::<lambda(const string&, const string&)>::<lambda(ArduinoJson::JsonObject)>'
json::parse_json(payload, [topic, callback](JsonObject root) { callback(topic, root); });
^
In the file included at src/esphome/core/string_ref.h:10, ....
src/esphome/components/tuya_iot/tuya_iot_component.cpp: In the lambda function:
src/esphome/components/tuya_iot/tuya_iot_component.cpp:167:96: error: Invalid initialization of reference of type 'const json_parse_t&' {aka 'const std::function<bool(ArduinoJson6185_D1::ObjectRef)>&'} of the expression of type 'esphome::tuya_iot::TuyaIotComponent:
ubscribe_json(const string&, const mqtt_json_callback_t&, uint8_t)::<lambda(const string&, const string&)>::<lambda(ArduinoJson::JsonObject)>'json::parse_json(payload, [topic, callback](JsonObject root) { callback(topic, root); });
^
In the file included at src/esphome/core/string_ref.h:10, ....

