sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
Other
230 stars 124 forks source link

Compiling is returning error: 'class WiFiClientSecure' has no member named 'setCACert' error #79

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).
sivar2311 commented 4 years ago

Please see comment on #78

sivar2311 commented 4 years ago

Did #78 work for you on this issue too?

DEADSEC-SECURITY commented 4 years ago

@sivar2311 updating the core with the latest one worked for me.