Ubuntu18系统下ArduinoIDE
系统:Ubuntu18.04IDE: Arduino 1.8.13
Lib: blinker-library-dev_3.0 (blinker-library-master 也一样)
编译的是例程 Blinker→Blinker_Hello→Hello_WiFi
Windows下编译不会报错
/home/shorylee/程序/arduino-1.8.13/libraries/blinker-library-dev_3.0/src/modules/WebSockets/WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
/home/shorylee/程序/arduino-1.8.13/libraries/blinker-library-dev_3.0/src/modules/WebSockets/WebSocketsClient.cpp:174:30: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
174 | _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
| ^~~~~~~~~
/home/shorylee/程序/arduino-1.8.13/libraries/blinker-library-dev_3.0/src/modules/WebSockets/WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
/home/shorylee/程序/arduino-1.8.13/libraries/blinker-library-dev_3.0/src/modules/WebSockets/WebSocketsClient.cpp:761:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'
761 | if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
| ^~~~~~
"WiFiUdp.h" 对应多个库
已使用: /home/shorylee/程序/arduino-1.8.13/hardware/esp8266com/esp8266/libraries/ESP8266WiFi
未使用:/home/shorylee/程序/arduino-1.8.13/libraries/WiFi
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。
请把你自己安装的8266 package删除,再按照文档安装指定版本 coloz 发表于 2021-3-8 09:57
请把你自己安装的8266 package删除,再按照文档安装指定版本
删了,然后从ide的开发板重新安装esp8266就可以了。谢谢啊。我之前是手动下载压缩包,按照官方教程使用命令行完成的安装。
页:
[1]