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

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: xiaomadema

[分享] esp8266网页配置wifi 及Blinker秘钥,实现远程开灯

[复制链接]
发表于 2021-9-12 10:43 | 显示全部楼层
xiaomadema 发表于 2021-9-8 09:02
先看一下贴吧里面其他人的帖子

已经接入搭建好的thingsboard 物联网平台 但是 想把wifi 信号强度也传送到平台  没教程
 楼主| 发表于 2021-9-13 14:04 | 显示全部楼层
这个我也不懂   我刚接触没多久物联网
发表于 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&) [with T = String]' 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[num], "\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[num], "\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 编译时出错。
发表于 2021-9-25 16:53 | 显示全部楼层
点了配置 没反应
 楼主| 发表于 2021-9-25 21:43 来自手机 | 显示全部楼层
704285881 发表于 2021-9-25 16:53
点了配置 没反应

需要把data文件夹记得文件上传到开发版
发表于 2021-11-29 08:04 | 显示全部楼层
谢谢大神分享
发表于 2021-12-2 18:41 | 显示全部楼层
楼主网页不存在怎么办呢
发表于 2022-1-7 08:53 | 显示全部楼层
非常感谢楼主分享此教程,注释非常详细,学习了。
发表于 2022-1-10 20:28 | 显示全部楼层
如果要重新配网怎么弄?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 01:38 , Processed in 0.082625 second(s), 13 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表