请给出dht.h库
https://github.com/adafruit/DHT-sensor-library 谢谢提供的DHT.H
请问楼主为什麽总是编译不过换了几种开发板都是一样错误
Arduino:1.8.5 (Windows 7), 开发板:"Adafruit Feather HUZZAH ESP8266, 80 MHz, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
构建选项已变更,全部重新构建
In file included from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:10:0,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker.h:200,
from C:\Users\dell\AppData\Local\Temp\arduino_modified_sketch_390035\BareMinimum.ino:6:
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:205:5: error: 'BearSSL' does not name a type
BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'virtual int BlinkerMQTT::connect()':
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:318:9: error: 'client_mqtt' was not declared in this scope
client_mqtt.setInsecure();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h: In member function 'int BlinkerMQTT::connectServer()':
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1443:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1445:21: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1445:46: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1445:46: error: template argument 2 is invalid
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1445:55: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1445:60: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1448:13: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Adapters/BlinkerMQTT.h:1463:21: error: invalid type argument of unary '*' (have 'int')
if (http.begin(*client_s, url_iot)) {// HTTPS
^
In file included from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:44:0,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker.h:200,
from C:\Users\dell\AppData\Local\Temp\arduino_modified_sketch_390035\BareMinimum.ino:6:
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h: At global scope:
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h:13:12: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
In file included from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:44:0,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker.h:200,
from C:\Users\dell\AppData\Local\Temp\arduino_modified_sketch_390035\BareMinimum.ino:6:
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h: In member function 'bool BlinkerOTA::update()':
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h:108:5: error: 'BearSSL' has not been declared
BearSSL::WiFiClientSecure client_s;
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h:108:31: error: expected ';' before 'client_s'
BearSSL::WiFiClientSecure client_s;
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Functions/BlinkerOTA.h:112:5: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\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\dell\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:11:0,
from C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker.h:200,
from C:\Users\dell\AppData\Local\Temp\arduino_modified_sketch_390035\BareMinimum.ino:6:
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h: In member function 'String BlinkerApi::blinkerServer(uint8_t, const String&, bool)':
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8789:20: error: 'BearSSL' does not name a type
extern BearSSL::WiFiClientSecure client_mqtt;
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8790:13: error: 'client_mqtt' was not declared in this scope
client_mqtt.stop();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8792:29: error: 'BearSSL' was not declared in this scope
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8792:54: error: template argument 1 is invalid
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8792:54: error: template argument 2 is invalid
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8792:63: error: invalid type in declaration before '(' token
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8792:68: error: expected type-specifier before 'BearSSL'
std::unique_ptr<BearSSL::WiFiClientSecure>client_s(new BearSSL::WiFiClientSecure);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8795:21: error: base operand of '->' is not a pointer
client_s->setInsecure();
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8819:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8832:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8846:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8861:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8874:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8887:37: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8902:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8916:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8929:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8941:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8955:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8968:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8981:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:8994:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9006:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9020:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9033:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9046:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9059:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
C:\Users\dell\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:9071:41: error: invalid type argument of unary '*' (have 'int')
http.begin(*client_s, url_iot);
^
exit status 1
为开发板 Adafruit Feather HUZZAH ESP8266 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
blinker库0.3.1 楼主我在blinker示例程序DHT_wifi能编译通过.但是我不知温度和湿度的数据键名,请告知谢谢. 通过将你的程序与DHT_WIFI示例程序对比终于发现问题所在.将你的程序中#include <DHT.h>换成
#include <modules/dht/DHT.h>就编译通过了. 大佬你好请问你的是什么板arduino uno吗 安卓端能不能发一下呀??(小白求教) 请问,你的温湿度可以实时显示吗?
页:
1
[2]