JoaoLopesF / RemoteDebug

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

Websockets library error and Ethernet access #77

Open MassiPi opened 3 years ago

MassiPi commented 3 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. build a project with 3.0.0 esp8266 core to get the websockets error 2.build a project with 3.0.0 esp8266 and W5500 ethernet shield. no connection can be made

Expected behavior

Arduino Information:

blaskovicz commented 2 years ago

Is this the websockets error you are referring to? I'm unable to build on the d1 mini and want to confirm if it's similar.


C:\Users\zacau\Documents\Arduino\libraries\RemoteDebug\src\utility\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
C:\Users\zacau\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())) {
|                          ^~~~~~```

Related to #78 
MassiPi commented 2 years ago

yes, it is. It's due to the fact that remotedebug contains also an old version of the webockets library. In my case, i do not use RD over websockets so i just commented out that part and disabled websockets, but i assume this is a design error to include an external library in this way. If you use websockets with RD, i think there is a way to use the updated websockets library, included externally (something like "use external websockets" in remotedebug.h, i can't check now)

Btw, it seems RD works correctly also with the new ethernet lwip library, very good!