Blinker的Hello Wifi样例程序编译错误
本帖最后由 xwdreamer 于 2018-12-19 22:24 编辑各位大大,帮忙看一下,为何一上来就编译错误啊。
我用的是Blinker的样例程序。
onewire的样例程序我是测试验证烧录成功了的。就是使用Blinker的时候,编译失败。是少了什么依赖包吗。Blinker的library也是下载了最新的。
截图见后面的附件。
以下是报错信息。
——————————————————————————————————————————————————————————————————————————————
Arduino: 1.8.7 (Mac OS X), TD: 1.45, Board: "WiFiduino, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from /Users/testabc/Documents/Arduino/libraries/Blinker/src/BlinkerESPMQTT.h:10:0,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker.h:149,
from /Users/testabc/Documents/Arduino/libraries/Blinker/examples/Blinker_Hello/Hello_WiFi/Hello_WiFi.ino:38:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:127:5: error: 'BearSSL' does not name a type
BearSSL::WiFiClientSecure client_mqtt;
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h: In member function 'bool BlinkerMQTT::connect()':
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:238:9: error: 'client_mqtt' was not declared in this scope
client_mqtt.setInsecure();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h: In member function 'bool BlinkerMQTT::connectServer()':
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1177:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1179:21: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1179:46: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1179:46: error: template argument 2 is invalid
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1179:55: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1179:60: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1182:13: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1195:21: error: invalid type argument of unary '*' (have 'int')
if (http.begin(*client_s, url_iot)) {// HTTPS
^
In file included from /Users/testabc/Documents/Arduino/libraries/Blinker/src/BlinkerESPMQTT.h:10:0,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker.h:149,
from /Users/testabc/Documents/Arduino/libraries/Blinker/examples/Blinker_Hello/Hello_WiFi/Hello_WiFi.ino:38:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Adapters/BlinkerMQTT.h:1535:17: error: base operand of '->' is not a pointer
client_s->stop();
^
In file included from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:37:0,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerProtocol.h:4,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/BlinkerESPMQTT.h:12,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker.h:149,
from /Users/testabc/Documents/Arduino/libraries/Blinker/examples/Blinker_Hello/Hello_WiFi/Hello_WiFi.ino:38:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h: At global scope:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h:13:12: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
In file included from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:37:0,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerProtocol.h:4,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/BlinkerESPMQTT.h:12,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker.h:149,
from /Users/testabc/Documents/Arduino/libraries/Blinker/examples/Blinker_Hello/Hello_WiFi/Hello_WiFi.ino:38:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h: In member function 'bool BlinkerOTA::update()':
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h:105:5: error: 'BearSSL' has not been declared
BearSSL::WiFiClientSecure client_s;
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h:105:31: error: expected ';' before 'client_s'
BearSSL::WiFiClientSecure client_s;
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h:109:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/utility/BlinkerOTA.h:112:17: error: 'client_s' was not declared in this scope
bool mfln = client_s.probeMaxFragmentLength(ota_host, ota_port, 1024);
^
In file included from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerProtocol.h:4:0,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/BlinkerESPMQTT.h:12,
from /Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker.h:149,
from /Users/testabc/Documents/Arduino/libraries/Blinker/examples/Blinker_Hello/Hello_WiFi/Hello_WiFi.ino:38:
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h: In member function 'String BlinkerApi<Proto>::blinkerServer(uint8_t, const String&, bool)':
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5791:20: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5792:13: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5794:29: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5794:54: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5794:54: error: template argument 2 is invalid
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5794:63: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5794:68: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5797:21: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5818:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5831:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5845:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5860:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5873:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5886:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5899:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5913:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5926:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5938:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5952:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5965:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5978:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:5991:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
/Users/testabc/Documents/Arduino/libraries/Blinker/src/Blinker/BlinkerApi.h:6003:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
exit status 1
Error compiling for board WiFiduino.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
https://doc.blinker.app/?file=003-%E7%A1%AC%E4%BB%B6%E5%BC%80%E5%8F%91/02-Arduino%E6%94%AF%E6%8C%81
务必更新为最新的esp8266_arduino package
使用IDE板卡管理器安装 2.5.0 及以上版本的 ESP8266 package
如果不能使用IDE安装,请到以下路径查询是否有老版本esp8266_arduino_package,若有老版本将其删除后再安装
%USERPROFILE%\AppData\Local\Arduino15
%USERPROFILE%\Documents\Arduino\hardware 我的是241版本。我看250以上都是beta版本,所以没有升级。 xwdreamer 发表于 2018-12-19 23:35
我的是241版本。我看250以上都是beta版本,所以没有升级。
目前不在支持2.5.0beta以下版本的package,以前的package对TLS加密的堆栈管理有问题。 好的,谢谢,今天测试验证了,编译成功。blinker也ok了。感谢。 xwdreamer 发表于 2018-12-20 12:18
好的,谢谢,今天测试验证了,编译成功。blinker也ok了。感谢。
哥们你怎么弄得 我现在都不知道 烧录的时候WiFi模块是不是连在板子上的
页:
[1]