Baptiste
发表于 2019-9-27 17:26
大神,请帮我看看好吗?库装了0.3,包更新到2.5.2
Arduino:1.8.5 (Windows 10), 开发板:"WeMos D1(Retired), 80 MHz, 115200, 4M (1M SPIFFS)"
构建选项已变更,全部重新构建
In file included from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10:0,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\bapti\Documents\Arduino\Blinker_dome\loop_takeONOFF\loop_takeONOFF.ino:3:
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:220:5: error: 'BearSSL' does not name a type
BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual int BlinkerMQTT::connect()':
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:333:9: error: 'client_mqtt' was not declared in this scope
client_mqtt.setInsecure();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'int BlinkerMQTT::connectServer()':
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1624:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1626:21: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1626:46: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1626:46: error: template argument 2 is invalid
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1626:55: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1626:60: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1629:13: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1645:21: error: invalid type argument of unary '*' (have 'int')
if (http.begin(*client_s, url_iot)) {// HTTPS
^
In file included from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:45:0,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\bapti\Documents\Arduino\Blinker_dome\loop_takeONOFF\loop_takeONOFF.ino:3:
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h: At global scope:
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h:13:12: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
In file included from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:45:0,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\bapti\Documents\Arduino\Blinker_dome\loop_takeONOFF\loop_takeONOFF.ino:3:
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h: In member function 'bool BlinkerOTA::update()':
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h:122:5: error: 'BearSSL' has not been declared
BearSSL::WiFiClientSecure client_s;
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h:122:31: error: expected ';' before 'client_s'
BearSSL::WiFiClientSecure client_s;
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h:126:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/../Functions/BlinkerOTA.h:129: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\bapti\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11:0,
from C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker.h:36,
from C:\Users\bapti\Documents\Arduino\Blinker_dome\loop_takeONOFF\loop_takeONOFF.ino:3:
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'String BlinkerApi::blinkerServer(uint8_t, const String&, bool)':
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10403:20: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10404:13: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10406:29: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10406:54: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10406:54: error: template argument 2 is invalid
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10406:63: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10406:68: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10409:21: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10433:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10446:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10460:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10475:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10488:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10501:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10516:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10530:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10543:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10555:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10569:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10582:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10595:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10608:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10620:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10634:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10647:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10660:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10673:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10685:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10698:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10711:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\bapti\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:10725:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
exit status 1
为开发板 WeMos D1(Retired) 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
奈何col
发表于 2019-9-27 18:45
Baptiste 发表于 2019-9-27 17:26
大神,请帮我看看好吗?库装了0.3,包更新到2.5.2
Arduino:1.8.5 (Windows 10), 开发板:"WeMos D1(Reti ...
2.5.2需要release版,不能是beta版
Baptiste
发表于 2019-9-27 20:51
2.5.1 可以吗?
奈何col
发表于 2019-9-28 08:34
Baptiste 发表于 2019-9-27 20:51
2.5.1 可以吗?
理论可以,自行测试
kybill
发表于 2019-10-1 16:41
请问是不是要先对esp8266进行透传,再把esp8266连到arduino板,再上传你上面的程序呢?
coloz
发表于 2019-10-1 16:55
kybill 发表于 2019-10-1 16:41
请问是不是要先对esp8266进行透传,再把esp8266连到arduino板,再上传你上面的程序呢? ...
这个教程是直接开发8266的,不需要再连接arduino。如果是arduino+8266模块,可以看快速接入文档
https://diandeng.tech/doc
kybill
发表于 2019-10-1 22:39
coloz 发表于 2019-10-1 16:55
这个教程是直接开发8266的,不需要再连接arduino。如果是arduino+8266模块,可以看快速接入文档
https://d ...
你好,我菜鸟一名,找不到哪个才是arduino+8266的教程呢。能帮忙找出来吗?谢谢!:$
coloz
发表于 2019-10-1 23:49
kybill 发表于 2019-10-1 22:39
你好,我菜鸟一名,找不到哪个才是arduino+8266的教程呢。能帮忙找出来吗?谢谢! ...
文档地址:https://diandeng.tech/doc/
8266 AT模块接入:https://diandeng.tech/doc/getting-start-wifi-at
物联网开发需要一定的开发基础,建议您先具备基础知识后再使用blinker开发
如果您希望使用8266模块连接其他开发板,但看了文档还不知道怎么使用,那建议您购买wifiduino开发板,我们提供了配套开发教程
https://www.arduino.cn/thread-83754-1-1.html
mogbay
发表于 2019-10-20 13:59
fatal error: Blinker.h: No such file or directory
mogbay
发表于 2019-10-20 14:14
我刚刚创建了一个新的程序,本帖子提示:在程序中找到名为auth、ssid和pswd的变量, auth中填入在app中获取到的Secret Key, ssid和pswd中填入你要连接的WiFi名和密码(我贴上去后发现有编译错误,就是楼上们说的最多的那个,是什么原因呢?)
页:
1
2
3
[4]
5
6
7
8
9
10
11
12