Open eaglefred opened 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
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
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.
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) ;-)
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.
Some problem here. Downgrade to 2.1.2. Looks like the repo here will no longer be maintained :(
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.
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.
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.
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.
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())) { | ^
~