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

RemoteDebug compilation error #1

Open
foux44 opened this issue Mar 13, 2022 · 8 comments
Open

RemoteDebug compilation error #1

foux44 opened this issue Mar 13, 2022 · 8 comments

Comments

@foux44
Copy link

foux44 commented Mar 13, 2022

Hi,

I'm experiencing some compilation trouble, according my search it could from the RemoteDebug library (JoaoLopesF/RemoteDebug#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
Copy link
Owner

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

foux44 commented Mar 13, 2022

If I delete these line:

#	define HASREMOTEDEBUG 1
#	define HASREMOTEDEBUG 0

I still got the same error ...

@HarrysLapTimer
Copy link
Owner

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

@foux44
Copy link
Author

foux44 commented Mar 13, 2022

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

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

foux44 commented Mar 15, 2022

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

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

foux44 commented Mar 17, 2022

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 !

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

2 participants