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

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

Open
eaglefred opened this issue Aug 13, 2021 · 10 comments
Open

Comments

@eaglefred
Copy link

eaglefred commented Aug 13, 2021

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

Arduino Information:

  • OS: Linux
  • IDE ArduinoIDE 1.8.15
  • Board ESP8266 GenericModule

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

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

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

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

Urs-Eppenberger commented Aug 24, 2021

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

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

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

@thanek
Copy link

thanek commented Jan 25, 2022

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

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

DrStein99 commented Mar 13, 2023

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

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.

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

8 participants