求助:error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 777|回复: 2

[已解决] 求助:error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'

[复制链接]
发表于 2021-12-4 22:01 | 显示全部楼层 |阅读模式
C:\Users\19822\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
C:\Users\19822\Documents\Arduino\libraries\Blinker\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\19822\Documents\Arduino\libraries\Blinker\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
C:\Users\19822\Documents\Arduino\libraries\Blinker\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())) {
      |                          ^~~~~~




想请教一下大佬们这个要怎么解决?我刚刚开始学..
十分感谢!


1.png
发表于 2021-12-5 01:45 | 显示全部楼层
依赖版本不匹配导致,将现有的package和lib移除,按照文档一步步安装即可
https://diandeng.tech/doc/getting-start-8266
 楼主| 发表于 2021-12-7 12:36 | 显示全部楼层
奈何col 发表于 2021-12-5 01:45
依赖版本不匹配导致,将现有的package和lib移除,按照文档一步步安装即可
https://diandeng.tech/doc/getti ...

谢谢大佬
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 19:28 , Processed in 0.075699 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表