|
本帖最后由 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.
|
|