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 when complie #5

Open
m2mlorawan opened this issue Jul 23, 2021 · 2 comments
Open

Error when complie #5

m2mlorawan opened this issue Jul 23, 2021 · 2 comments

Comments

@m2mlorawan
Copy link

Found this error when complie.
C:\Users\sx\Documents\Arduino2\libraries\arduinoWebSockets-master\src\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
C:\Users\sx\Documents\Arduino2\libraries\arduinoWebSockets-master\src\WebSocketsClient.cpp:172:30: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
172 | _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
| ^~~~~~~~~
C:\Users\sx\Documents\Arduino2\libraries\arduinoWebSockets-master\src\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
C:\Users\sx\Documents\Arduino2\libraries\arduinoWebSockets-master\src\WebSocketsClient.cpp:759:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'
759 | if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {

@pulsartronic
Copy link
Owner

Hello @m2mlorawan
It is caused by the ESP8266 library version.
Oldest tested version is v2.6.3. Latest tested version is 2.7.1 ... you can find it under tools --> Board --> Board Manager
Search for that text here:
https://www.hackster.io/pulsartronic/lorawan-gateway-esp8266-rfm95-arduino-4914a8

Another work around is to update this library:
https://github.com/Links2004/arduinoWebSockets

@HemjalCF
Copy link

Please add that version info in your readme file. Your program doesn't compile on esp8266 v3.7.1

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

3 participants