bertmelis / TreeLight

Don't loose any time connecting your ESP to MQTT. It comes with a small webserver also!
MIT License
1 stars 3 forks source link

Wrong Lib? #6

Open Werner-G opened 1 year ago

Werner-G commented 1 year ago

when compiling simple examples from this repro like blinker.ino, I always get this error message:

C:\Users\WG.W2K\Documents\Arduino\libraries\TreeLight-baseTopic\src\TreeLight.cpp: In member function 'void TreeLightClass::_printBuffer()':

C:\Users\WG.W2K\Documents\Arduino\libraries\TreeLight-baseTopic\src\TreeLight.cpp:341:32: error: no matching function for call to 'TreeLightClass::clearQueue(std::queue<unsigned char>&)'

       clearQueue(_messageBuffer);

                                ^

C:\Users\WG.W2K\Documents\Arduino\libraries\TreeLight-baseTopic\src\TreeLight.cpp:341:32: note: candidate is:

In file included from C:\Users\WG.W2K\Documents\Arduino\libraries\async-mqtt-client-master\src/AsyncMqttClient.h:4:0,

                 from C:\Users\WG.W2K\Documents\Arduino\libraries\TreeLight-baseTopic\src\TreeLight.h:56,

                 from C:\Users\WG.W2K\Documents\Arduino\libraries\TreeLight-baseTopic\src\TreeLight.cpp:26:

C:\Users\WG.W2K\Documents\Arduino\libraries\async-mqtt-client-master\src/AsyncMqttClient.hpp:84:8: note: bool AsyncMqttClient::clearQueue()

   bool clearQueue();  // Not MQTT compliant!

        ^

C:\Users\WG.W2K\Documents\Arduino\libraries\async-mqtt-client-master\src/AsyncMqttClient.hpp:84:8: note:   candidate expects 0 arguments, 1 provided

exit status 1

Fehler beim Kompilieren für das Board LOLIN(WEMOS) D1 R2 & mini.

I tried several different libs. The most important one seems to be the 'AsyncMqttClient' from Marvin Roger. But I have always the same error. Is there anybody who could give me a hint how to go further? Without a working Treelight I cannot compile the esp8266-heating-sketch.

bertmelis commented 1 year ago

The Treelight library is not maintained anymore.

but I might be able to help without this lib. What do you want to achieve? Just a sensor that pushes data over MQTT? Or does it need to have a web-interface?

Werner-G commented 1 year ago

Hi Bert, I have a running esp-heating since years and just want to change one parameter. I do not need a web-interface, just the MQTT-datas out of my VitoWifi. Would be glad if you could help again!

bertmelis commented 1 year ago

ok, that should be fairly straightforward. I'm doing the same for myself at the moment. ESP8266 or ESP32?

Werner-G commented 1 year ago

Prefered is 8266 - thanks Bert!

Werner-G commented 11 months ago

Hi Bert, please keep up the good work!

bertmelis commented 11 months ago

Hi.

I'm still working on a version 3 of the VitoWiFi library. It will be much more simple and maintainable. It's a struggle to find time...