1、不太明白怎么删除旧版本,我在C:\Users\Administrator\sketchbook\libraries中找到了blinker-library-master删除了(我的H:\Arduino\libraries文件中没有blinker-library-master)求助正确的删除文件方法。2我在C:\Users\Administrator\sketchbook\libraries中找到了blinker-library-master删除了(我的H:\Arduino\libraries文件中没有blinker-library-master)之后又加载了一遍新的库,之后例程Button_WiFi,编译出现:
Arduino:1.8.7 (Windows 10), 开发板:"WiFiduino, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
In file included from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/BlinkerESPMQTT.h:10:0,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker.h:122,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\examples\Blinker_Button\Button_WiFi\Button_WiFi.ino:40:
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:199:5: error: 'BearSSL' does not name a type
BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'virtual int BlinkerMQTT::connect()':
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:312:9: error: 'client_mqtt' was not declared in this scope
client_mqtt.setInsecure();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h: In member function 'int BlinkerMQTT::connectServer()':
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1413:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1415:21: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1415:46: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1415:46: error: template argument 2 is invalid
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1415:55: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1415:60: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1418:13: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Adapters/BlinkerMQTT.h:1431:21: error: invalid type argument of unary '*' (have 'int')
if (http.begin(*client_s, url_iot)) { // HTTPS
^
In file included from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:37:0,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker.h:122,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\examples\Blinker_Button\Button_WiFi\Button_WiFi.ino:40:
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h: At global scope:
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:13:12: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
In file included from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:37:0,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker.h:122,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\examples\Blinker_Button\Button_WiFi\Button_WiFi.ino:40:
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h: In member function 'bool BlinkerOTA::update()':
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:108:5: error: 'BearSSL' has not been declared
BearSSL::WiFiClientSecure client_s;
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:108:31: error: expected ';' before 'client_s'
BearSSL::WiFiClientSecure client_s;
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:112:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Functions/BlinkerOTA.h:115:17: error: 'client_s' was not declared in this scope
bool mfln = client_s.probeMaxFragmentLength(ota_host, ota_port, 1024);
^
In file included from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11:0,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker.h:122,
from C:\Users\Administrator\sketchbook\libraries\blinker-library-master\examples\Blinker_Button\Button_WiFi\Button_WiFi.ino:40:
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h: In member function 'String BlinkerApi::blinkerServer(uint8_t, const String&, bool)':
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6111:20: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6112:13: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6114:29: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6114:54: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6114:54: error: template argument 2 is invalid
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6114:63: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6114:68: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6117:21: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6141:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6154:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6168:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6183:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6196:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6209:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6222:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6236:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6249:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6261:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6275:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6288:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6301:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6314:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6326:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\Administrator\sketchbook\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6340:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
exit status 1
为开发板 WiFiduino 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
这个问题错误,求大神帮忙,谢谢
|