esp8266网页配置wifi 及Blinker秘钥,实现远程开灯-Arduino中文社区 - Powered by Discuz! Archiver

liaomsn 发表于 2021-9-12 10:43

xiaomadema 发表于 2021-9-8 09:02
先看一下贴吧里面其他人的帖子
已经接入搭建好的thingsboard 物联网平台 但是 想把wifi 信号强度也传送到平台没教程

xiaomadema 发表于 2021-9-13 14:04

这个我也不懂   我刚接触没多久物联网

yuanlichuan 发表于 2021-9-22 23:26

我编译出错怎么回事   D:\8266\Web配网,配秘钥\webconfig\webconfig.ino:169:9: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
In file included from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
               from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
               from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
               from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
               from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
               from D:\8266\Web配网,配秘钥\webconfig\webconfig.ino:1:
C:\Users\Administrator\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/FS.h:275:15: note: declared here
275 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
      |               ^~~~~~
In file included from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:90,
               from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/BlinkerESPMQTT.h:11,
               from C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker.h:36,
               from D:\8266\Web配网,配秘钥\webconfig\webconfig.ino:10:
In constructor 'BlinkerData::BlinkerData()',
    inlined from 'void BlinkerApi::dataStorage(char*, const T&) ' at C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6520:35:
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:451:27: warning: 'void* memcpy(void*, const void*, size_t)' reading 10 bytes from a region of size 2 [-Wstringop-overflow=]
451 |                     memcpy(data, "\0", 10);
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~
In member function 'void BlinkerData::flush()',
    inlined from 'bool BlinkerApi::dataUpdate()' at C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApi.h:6923:35:
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src/Blinker/BlinkerApiBase.h:597:27: warning: 'void* memcpy(void*, const void*, size_t)' reading 10 bytes from a region of size 2 [-Wstringop-overflow=]
597 |                     memcpy(data, "\0", 10);
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()':
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:174:30: error: 'class BearSSL::WiFiClientSecure' has no member named 'setCACert'
174 |               _client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
      |                              ^~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp: In member function 'void WebSocketsClient::connectedCb()':
C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-master\src\modules\WebSockets\WebSocketsClient.cpp:761:26: error: 'class BearSSL::WiFiClientSecure' has no member named 'verify'
761 |         if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
      |                        ^~~~~~
exit status 1
为开发板 Generic ESP8266 Module 编译时出错。

704285881 发表于 2021-9-25 16:53

"D:\图片\screen\2021-09-25 16 51 45.png" 点了配置 没反应

xiaomadema 发表于 2021-9-25 21:43

704285881 发表于 2021-9-25 16:53
点了配置 没反应

需要把data文件夹记得文件上传到开发版

njbhqm 发表于 2021-11-29 08:04

谢谢大神分享:)

HYX100400 发表于 2021-12-2 18:41

楼主网页不存在怎么办呢

ht256929 发表于 2021-12-23 23:20

学习一下

f416059509 发表于 2022-1-7 08:53

非常感谢楼主分享此教程,注释非常详细,学习了。

zkhaoo 发表于 2022-1-10 20:28

如果要重新配网怎么弄?
页: 1 2 3 4 [5] 6 7
查看完整版本: esp8266网页配置wifi 及Blinker秘钥,实现远程开灯