JoaoLopesF / RemoteDebug

Library for Arduino to debug projects over WiFi, with web app or telnet, with print commands like Serial Monitor
MIT License
616 stars 128 forks source link

error: 'class BearSSL::WiFiClientSecure' has no member named 'verify' #80

Open eaglefred opened 3 years ago

eaglefred commented 3 years ago

Describe the bug Error when compiling my source code for ESP8266 with 3.0.5 RemoteDebug

Arduino Information:

Additional context Here is the compilation error: /home/fred/Arduino/libraries/RemoteDebug/src/utility/WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()': /home/fred/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())) { | ^~

robin-s-007 commented 3 years ago

Hi eaglefred,

I have run into the same problems in the last couple of days. I have used this library with success on the ESP32 in the past, by now I wanted to use it on the ESP8266, and got the same problems. I am using platformIO and am using the arduino framework, before I started my project (last weekend), I updated all the platform libraries. What I have come across during the last couple of days is that there seems to have been a change in the arduino framework sometime ago, and the local websocket libraries that are included in the RemoteDebug library do not match anymore.

I have been able to solve it in the following manner:

Then clean and rebuild, it should then build again.

This worked for me to get it compling again, but have not tested the code yet. However I expect that it will work now.

Best Regards,

Robin

eaglefred commented 3 years ago

Hi Robin, Thank you very much for the trick, i have tried it but it doesn't work for me. I have an error when compiling:

exit status 1 'RemoteDebug' does not name a type

Without the #include "RemoteDebug" and all its refering code, my source code is compiling, so i have to look for another way to debug it. Tank you for your message. Take care.

Fred

Urs-Eppenberger commented 3 years ago

Just to let you know, I'm running in exactly the same problem. And since I'm not a programmer, just barely able to patch together some code, I can't fix this on my own.

Urs-Eppenberger commented 3 years ago

I downgraded to version 2.1.2 Now it works again. I'm happy using telnet as debug possibility. I do not need the web functionality. (since I'm working with sonoff devices which are connected to 220V life power, the debug functionality over WiFi is an important security function for me) ;-)

ArnoldGoat commented 3 years ago

I am a new user of this OTA debugging tool. I had same problem with V3.0.5. Downgraded to 2.1.2 and it works fine with Telnet on Windows. Thanks for suggestion.

foorschtbar commented 2 years ago

Some problem here. Downgrade to 2.1.2. Looks like the repo here will no longer be maintained :(

thanek commented 2 years ago

If you want to use the new Arduino library, you have to exclude some files from compilation process. In order to do that in platformio you can use the extra_scripts platformio feature and point to a script which will filter compiled files and effectively exclude those in the utility folder. You can check the example in my repository here: https://github.com/thanek/sharp-fu-y30-mqtt-esp/blob/master/platformio.ini and the script: https://github.com/thanek/sharp-fu-y30-mqtt-esp/blob/master/utils/filter_src.py

This, combined with the -DUSE_LIB_WEBSOCKET=1 build flag should do the job. Hope that helps.

scottchiefbaker commented 1 year ago

Last commit on this repo was 2019. Unfortunately it looks like this project has been abandoned :(

I was able to "fix" this issue by downgrading to v2.1.2 as mentioned. This allowed me to compile for a NodeMCU board just fine. Hopefully that will help someone else.

DrStein99 commented 1 year ago

I confirm, downgrading to v2.1.2 fixed compiler errors (which had me up all night tracing down). If you ask me, a telnet serial debugger should just be a built in feature, blended right with the OTA updates. Just my 2-cents.

scottchiefbaker commented 1 year ago

I've started work on a similar tool to RemoteDebug. It's still a work in progress, but if you're interested in testing something similar check out RIX.