HarrysLapTimer / ChickenDoor

This is a chicken door automation designed for our two Eglu Cube and one Eglu Go chicken houses
0 stars 0 forks source link

RemoteDebug compilation error #1

Open foux44 opened 2 years ago

foux44 commented 2 years ago

Hi,

I'm experiencing some compilation trouble, according my search it could from the RemoteDebug library (https://github.com/JoaoLopesF/RemoteDebug/issues/80), following that thread it has not helping me still stuck on that error

C:\Users\XXX\Documents\Arduino\libraries\RemoteDebug\src\utility\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()': C:\Users\XXX\Documents\Arduino\libraries\RemoteDebug\src\utility\WebSocketsClient.cpp:704:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify' 704 | if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) { | ^~~~~~ exit status 1 Erreur de compilation pour la carte LOLIN(WEMOS) D1 R2 & mini

Some help would be greatfull !

Thanks,

HarrysLapTimer commented 2 years ago

RemoteDebug is optional, see the section

#ifdef ESP_PLATFORM
#   define HASPREFERENCES 1
#   define HASREMOTEDEBUG 1
#   include <WiFi.h>
#else
#   define HASPREFERENCES 0
#   define HASREMOTEDEBUG 0
#   include <ESP8266WiFi.h>
#endif

in Bolbro.h.

ESP_PLATFORM is defined for ESP32 boards. In general, this type of errors will be related to the ESP board used. You may need to tweak the code in case a certain library is not compatible.

foux44 commented 2 years ago

If I delete these line:

#   define HASREMOTEDEBUG 1
#   define HASREMOTEDEBUG 0

I still got the same error ...

HarrysLapTimer commented 2 years ago

This name needs to be either 1 or 0 (false). Set it to false in case you want to skip remote debug.

foux44 commented 2 years ago

Anyway I use 0 in "#ifdef ESP_PLATFORM" I still get error when bolbro.h is modified like that:


#ifdef ESP_PLATFORM
#   define HASPREFERENCES 0
#   define HASREMOTEDEBUG 0
#   include <WiFi.h>
#else
#   define HASPREFERENCES 0
#   define HASREMOTEDEBUG 0
#   include <ESP8266WiFi.h>
#endif

Picture

Here the folowing libraries I use with Arduino IDE 1.8.19:

Are they ok ?

HarrysLapTimer commented 2 years ago

Please keep in mind I cannot give support for any specific configuration or error messages generated by compatibility issues. I have checked my lib versions nevertheless. The ESP8266 board support is on 2.7.4 - somewhat outdated. RemoteDebug is 3.0.5 and ArduinoWebsockets is not installed.

foux44 commented 2 years ago

Thanks for your feedback, I understand your suggestion but with freshly installer Arduino software with last libraries it's not working...

Even with the "old" sources of libraries I can't compile... I tried to install an old version Arduino (1.8.13 from Mai 2020) but it's not working as welll... Which version to do use ?

I've also installed the library \ArduinoJson (seems to be links with bolbro) from an old version 6.15.2 from May 2020, do you know your own version ?

Thanks again

HarrysLapTimer commented 2 years ago

My Arduino IDE is 1.8.16, ArduinoJson is 6.19.3. Not sure it makes sense to find the problem like this. I have made sure the latest versions are in the rep, pull again please. They compile for me like this. In case they do not for you I'd assume it is around the board libs you have installed. Depending on the board, you will have different system headers and libs.

foux44 commented 2 years ago

Wonderba ! With all the same version of Soft/lib... With your new uploaded script and with minor mistake onto line 420

Bolbro.addWiFi("SSID","PW""); // customize

Should be

Bolbro.addWiFi("SSID","PW"); // customize

It compile ! Thanks again for your precious feedback ! Will tried that week end all the assembling printed / electronics stuff !