Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with MQTT creates Errormessages #24

Open
Vmie opened this issue Aug 6, 2023 · 3 comments
Open

Compiling with MQTT creates Errormessages #24

Vmie opened this issue Aug 6, 2023 · 3 comments

Comments

@Vmie
Copy link

Vmie commented Aug 6, 2023

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
Copy link

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
Copy link

hidaba commented Dec 23, 2023

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

@TomtomWa
Copy link

TomtomWa commented Jan 1, 2024

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

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

  • Go to library manager, search for "microgear" (ESP8266 Microgear) and click "Remove"
  • Search for "PubSubClient" and install the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants