为什么编译失败啊兄弟们-Arduino中文社区 - Powered by Discuz! Archiver

2519491167 发表于 2022-6-23 20:30

为什么编译失败啊兄弟们

Arduino:1.8.15 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':

C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\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);

      |                              ^~~~~~~~~

C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':

C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\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())) {

      |                        ^~~~~~

exit status 1

为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。



在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


奈何col 发表于 2022-8-21 23:11

你转的package版本太老了
请按官网文档,安装最新版本的依赖
页: [1]
查看完整版本: 为什么编译失败啊兄弟们