irekzielinski / Pylontech-Battery-Monitoring

Adding WiFi monitoring to US2000B and US2000C batteries.
130 stars 56 forks source link

Compiling with MQTT creates Errormessages #24

Open Vmie opened 1 year ago

Vmie commented 1 year ago

Hi all, In general all works well and I've access to the Pylontech Batteries. But if I like to enable the MQTT function, I get the following error, if I try to compile it: ....Documents\Arduino\libraries\ESP8266_Microgear\MicroGear.cpp: In member function 'void MicroGear::syncTime(Client, long unsigned int)': ....Documents\Arduino\libraries\ESP8266_Microgear\MicroGear.cpp:150:23: error: 'class WiFiClientSecure' has no member named 'setFingerprint' clientsecure->setFingerprint(tstr); ^ ....Documents\Arduino\libraries\ESP8266_Microgear\MicroGear.cpp:159:27: error: 'class WiFiClientSecure' has no member named 'setInsecure' clientsecure->setInsecure();

I couldn't fine any solution for this issue. Maybe somebody know how to solve it.

Startertrek commented 11 months ago

Actually I investet a lot of time to make this compiling, but no success. My workaround is to reqest the data via the REST commands. This works very stable.

hidaba commented 9 months ago

I think you use the incorrect library, try with [PubSubClient] library

TomtomWa commented 9 months ago

thanks @hidaba, good hint, I had the same problem!

For anyone else using Arduino IDE (as I do), do the following: