宇之枫海云
发表于 2021-11-5 10:07
ming75851591 发表于 2021-11-4 23:39
一看就是做电赛的
已经解决了,多看看实例就明白了
coloz
发表于 2021-11-5 18:48
ming75851591 发表于 2021-11-4 23:40
按照示例程序操作,APP里并没有实时上传数据啊!设备在线,key也对应的没错 ...
https://www.arduino.cn/thread-84332-1-1.html
看看调试信息
baorui1973
发表于 2021-12-8 16:06
为什么我的APP里没有“实时数据”选项?已经升级至2.5.8
lwnews
发表于 2022-1-6 16:13
同样的程序用arduino编译通过,而visual studio却出错,什么原因呢?Compiling debug version of 'HUMI_TEMP' for 'NodeMCU 1.0 (ESP-12E Module)'
BlinkerTimer.cpp:5: In file included from
BlinkerTimer.h: 6:10: fatal error: Ticker.h: No such file or directory
6 | #include <Ticker.h>
| ^~~~~~~~~~
compilation terminated
painlessMeshConnection.cpp:9: In file included from
painlessMeshConnection.h: 13:10: fatal error: ESP8266WiFi.h: No such file or directory
13 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
wifi.hpp:4: In file included from
painlessMeshSTA.cpp:13: from
configuration.hpp: 33:10: fatal error: ESP8266WiFi.h: No such file or directory
33 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
wifi.hpp:4: In file included from
wifi.cpp:2: from
configuration.hpp: 33:10: fatal error: ESP8266WiFi.h: No such file or directory
33 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
SocketIOclient.cpp:10: In file included from
WebSockets.h: 158:10: fatal error: ESP8266WiFi.h: No such file or directory
158 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
WebSockets.cpp:25: In file included from
WebSockets.h: 158:10: fatal error: ESP8266WiFi.h: No such file or directory
158 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
WebSocketsClient.cpp:25: In file included from
WebSockets.h: 158:10: fatal error: ESP8266WiFi.h: No such file or directory
158 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
WebSocketsServer.cpp:25: In file included from
WebSockets.h: 158:10: fatal error: ESP8266WiFi.h: No such file or directory
158 | #include <ESP8266WiFi.h>
| ^~~~~~~~~~~~~~~
compilation terminated
85968011
发表于 2022-3-29 10:17
本帖最后由 85968011 于 2022-3-29 10:23 编辑
C:\Users\Administrator\Desktop\NodeMCU_Blinker_DHT22_rtData\NodeMCU_Blinker_DHT22_rtData.ino: In function 'void rtData()':
NodeMCU_Blinker_DHT22_rtData:48:13: error: 'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
48 | Blinker.sendRtData("temp", dht22_temp);
| ^~~~~~~~~~
| textData
NodeMCU_Blinker_DHT22_rtData:49:13: error: 'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
49 | Blinker.sendRtData("humi", dht22_humidity);
| ^~~~~~~~~~
| textData
NodeMCU_Blinker_DHT22_rtData:50:13: error: 'class BlinkerESPMQTT' has no member named 'printRtData'
50 | Blinker.printRtData();
| ^~~~~~~~~~~
C:\Users\Administrator\Desktop\NodeMCU_Blinker_DHT22_rtData\NodeMCU_Blinker_DHT22_rtData.ino: In function 'void setup()':
NodeMCU_Blinker_DHT22_rtData:89:30: error: no matching function for call to 'BlinkerESPMQTT::attachRTData(void (&)())'
89 | Blinker.attachRTData(rtData);
| ^
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:17,
from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
from C:\Users\Administrator\Desktop\NodeMCU_Blinker_DHT22_rtData\NodeMCU_Blinker_DHT22_rtData.ino:9:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:502:18: note: candidate: 'void BlinkerApi::attachRTData(char*, blinker_callback_t)'
502 | void attachRTData(char _name[], blinker_callback_t newFunction)
| ^~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:502:18: note: candidate expects 2 arguments, 1 provided
"Blinker.h" 对应多个库
已使用: C:\Users\Administrator\Documents\Arduino\libraries\Blinker
未使用:C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-dev_3.0
exit status 1
'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
使用库的初衷是节省重复操作的精力,一会用这个库,一会增加功能需要再添加另外一个库,搞来搞去都是错误,要浪费更多的精力去排错,我看好多帖子都是库文件版本问题和冲突;
85968011
发表于 2022-3-29 10:33
F:\点灯科技\blinker-library-dev_3.0\blinker-library-dev_3.0\examples\Blinker_RT_DATA\Blinker_RT_DATA.ino: In function 'void rtData()':
Blinker_RT_DATA:68:13: error: 'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
Blinker_RT_DATA:69:13: error: 'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
Blinker_RT_DATA:70:13: error: 'class BlinkerESPMQTT' has no member named 'printRtData'
F:\点灯科技\blinker-library-dev_3.0\blinker-library-dev_3.0\examples\Blinker_RT_DATA\Blinker_RT_DATA.ino: In function 'void setup()':
Blinker_RT_DATA:83:32: error: no matching function for call to 'BlinkerESPMQTT::attachRTData(void (&)())'
In file included from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/BlinkerESPMQTT.h:17,
from C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker.h:38,
from F:\点灯科技\blinker-library-dev_3.0\blinker-library-dev_3.0\examples\Blinker_RT_DATA\Blinker_RT_DATA.ino:48:
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:502:18: note: candidate: 'void BlinkerApi::attachRTData(char*, blinker_callback_t)'
502 | void attachRTData(char _name[], blinker_callback_t newFunction)
| ^~~~~~~~~~~~
C:\Users\Administrator\Documents\Arduino\libraries\Blinker\src/Blinker/BlinkerApi.h:502:18: note: candidate expects 2 arguments, 1 provided
"Blinker.h" 对应多个库
已使用: C:\Users\Administrator\Documents\Arduino\libraries\Blinker
未使用:C:\Users\Administrator\Documents\Arduino\libraries\blinker-library-dev_3.0
exit status 1
'class BlinkerESPMQTT' has no member named 'sendRtData'; did you mean 'textData'?
例程都能提示错误,到底用哪个库啊?
点灯官方
发表于 2022-4-6 14:09
85968011 发表于 2022-3-29 10:33
F:\点灯科技\blinker-library-dev_3.0\blinker-library-dev_3.0\examples\Blinker_RT_DATA\Blinker_RT_DAT ...
从提示信息看,您安装了两个版本的库,且可能使用了老版本的库,请将现存的两个版本库都删除,然后通过点灯官网下载最新的库
armduino
发表于 2022-4-15 11:28
'class BlinkerESPMQTT' has no member named 'sendRtData'
复制了代码,问题如上,请指教
库是最新的,Blinker APP也是刚安装的
yunqi
发表于 2022-4-26 08:43
请问怎么用实时数据功能实时显示倒计时 hh:mm:ss?
点灯官方
发表于 2022-4-26 09:20
yunqi 发表于 2022-4-26 08:43
请问怎么用实时数据功能实时显示倒计时 hh:mm:ss?
布局器不具备该功能,只能自己写代码开发页面
https://diandeng.tech/doc/customizer