Links2004 / arduinoWebSockets

arduinoWebSockets
GNU Lesser General Public License v2.1
1.88k stars 555 forks source link

Compiler returning 'class WiFiClientSecure' has no member named 'setCACert' #554

Closed DEADSEC-SECURITY closed 4 years ago

DEADSEC-SECURITY commented 4 years ago

I'm trying to compile SinricPro but it's returning the following error:

Libraries:

Arduino board:

Arduino: 1.8.13 (Windows Store 1.8.39.0) (Windows 10), Board: "NodeMCU 0.9 (ESP-12 Module), 80 MHz, 115200, 4M (3M SPIFFS)"

C:\Users\amng8\Documents\Arduino\libraries\WebSockets\src\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':

C:\Users\amng8\Documents\Arduino\libraries\WebSockets\src\WebSocketsClient.cpp:172:30: error: 'class WiFiClientSecure' has no member named 'setCACert'

                 _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);

                              ^

exit status 1

Error compiling for board NodeMCU 0.9 (ESP-12 Module).
Links2004 commented 4 years ago

which version of the arduino esp8266 core do you using? the latest master is building fine at the moment.

DEADSEC-SECURITY commented 4 years ago

How can I burn the latest version to my node MCU @Links2004 ?

I have installed version 2.3.0 of the esp8266

DEADSEC-SECURITY commented 4 years ago

Updated to version 2.7.2 and it worked, thanks