设置定时任务不能超过4个
硬件: ESP8266 12f, ESP8266 Node MCU
接入方式:
开发环境:
库版本: esp8266 3.0,blinker-library-dev_3.0,DallasTemperature 3.9.0,Servo 1.0.2
操作系统:
Executable segment sizes:ICACHE : 32768 - flash instruction cache IROM : 509376 - code in flash (default or ICACHE_FLASH_ATTR) IRAM : 29801 / 32768 - code in IRAM (IRAM_ATTR, ISRs...) DATA : 1788) - initialized variables (global, static) in RAM/HEAP RODATA : 4164) / 81920 - constants (global, static) in RAM/HEAP BSS : 31128 ) - zeroed variables (global, static) in RAM/HEAP
项目使用了 545129 字节,占用了 (56%) 程序存储空间。最大为 958448 字节。全局变量使用了37080字节,(45%)的动态内存,余留44840字节局部变量。最大为81920字节。
问题:设置定时任务超过4个时报错,有时会造成设备重启或crash:
20:52:14.436 -> ERROR: Print data is not Json! {"data":{"timing":[{"task":0,"ena":1,"day":"1111111","tim":540,"act":[{"btn-ski":"on"}]},{"task":1,"ena":1,"day":"1111111","tim":1080,"act":[{"btn-ski":"off"}]},{"task":2,"ena":1,"day":"1111111","tim":480,"act":[{"btn-2ct":"on"}]},{"task":3,"ena":1,"day":"1111111","tim":600,"act":[{"btn-2ct":"on"}]},{"task":4,"ena":1,"day":"1111111","tim":720,"act":[{"btn-2ct":"on"}]}]},"fromDevice":"DC9E08CEO4TI1Y972M98TWMY","toDevice":"99a391f9204262a13caf9672f4c60b23","deviceType":"OwnApp"}20:52:44.402 -> ERROR: Print data is not Json! {"data":{"timing":[{"task":0,"ena":1,"day":"1111111","tim":540,"act":[{"btn-ski":"on"}]},{"task":1,"ena":1,"day":"1111111","tim":1080,"act":[{"btn-ski":"off"}]},{"task":2,"ena":1,"day":"1111111","tim":480,"act":[{"btn-2ct":"on"}]},{"task":3,"ena":1,"day":"1111111","tim":600,"act":[{"btn-2ct":"on"}]},{"task":4,"ena":1,"day":"1111111","tim":720,"act":[{"btn-2ct":"on"}]}]},"fromDevice":"DC9E08CEO4TI1Y972M98TWMY","toDevice":"99a391f9204262a13caf9672f4c60b23","deviceType":"OwnApp"}
以前一直没问题。
手机app上也只显示4个。 json解析的堆栈不够而已 只不过暂不计划增加json解析堆栈了 不知道跟blinker库有关,将blinker升级到dev 3,就可以了 最新库增加了json堆栈 之前1024字节 增加到2048了 大概几个月前就改了 为啥我的定时任务里只有开关8266开发板
honghonglin 发表于 2021-9-30 11:24
为啥我的定时任务里只有开关8266开发板
需要先添加动作指令,见文档:https://diandeng.tech/doc/app-timer 点灯官方 发表于 2021-9-30 22:05
需要先添加动作指令,见文档:https://diandeng.tech/doc/app-timer
这个指令说明一直看不明白
遇上电子 发表于 2022-4-15 23:37
这个指令说明一直看不明白
"cmd":{"btn-abc":"tap"},
"text":"按一下按键"
cmd里就是要让设备执行的指令,text就是app上用于显示的动作名称,具体还有什么地方不理解?
页:
[1]