我正在尝试让Alexa连接Node MCU。我从某人那里获得了代码,但未得到遵守

时间:2019-07-02 17:21:35

标签: c arduino alexa nodemcu

我遵循了视频中的所有步骤:https://www.youtube.com/watch?v=0Z1pR3cehHQ

我在哪里获得代码: https://github.com/Grensom/NodeMCU-AlexaDevice

在编译之前,我在代码中更改了wifi名称,密码和Sinric ID。

Errors: 
Arduino: 1.8.9 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

/Users/user/Documents/Arduino/libraries/arduinoWebSockets-2.1.4/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
/Users/user/Documents/Arduino/libraries/arduinoWebSockets-2.1.4/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 1.0 (ESP-12E Module).

此报告将包含更多信息 "Show verbose output during compilation" File -> Preferences中启用了该选项。

0 个答案:

没有答案