老大,我打开了DEBUG,然后吐出这些信息,你帮分析下问题在哪里。
说明一下: 我在1609设置了定时时间是1611时执行动作 btn-abc: tap这样子,日志如下
16:09:54.083 -> [654170] _isTimingLoop: true
16:09:54.083 -> [654173] _time: 971
16:09:54.083 -> [654175] _action: [{"btn-abc":"tap"}]
16:09:54.083 -> [654178] addTimingTask taskSet: 0
16:09:54.083 -> [654181] addTimingTask timerData: 2156071883
16:09:54.083 -> [654185] new BlinkerTimingTimer
16:09:54.083 -> [654188] taskCount: 1
16:09:54.083 -> [654190] freshTiming wDay: 6, nowMins: 489, nowSeconds: 29390
16:09:54.117 -> [654196] isTimingDay: 1
16:09:54.117 -> [654198] state: 1
16:09:54.117 -> [654199] getTime: 971
16:09:54.117 -> [654201] for nextTask: 0 apartSeconds: 28870 wDay: 6
16:09:54.117 -> [654206] nextTask: 0 apartSeconds: 28870 wDay: 6
16:09:54.117 -> [654211] cbackData: 0
16:09:54.117 -> [654213] change apartSeconds: 3600
16:09:54.117 -> [654217] getTimerData: 2156071883
16:09:54.117 -> [654219] _tmAction_: [{"btn-abc":"tap"}]
16:09:54.151 -> [654271] timingDayStr: 1000011
16:09:54.185 -> [654272] timingTaskStr: {"timing":[{"task":0,"ena":1,"day":"1000011","tim":971,"act":[{"btn-abc":"tap"}]}]}
16:09:54.185 -> [654272] print: {"timing":[{"task":0,"ena":1,"day":"1000011","tim":971,"act":[{"btn-abc":"tap"}]}]}
16:09:54.185 -> [654281] print: {"timing":[{"task":0,"ena":1,"day":"1000011","tim":971,"act":[{"btn-abc":"tap"}]}]}
16:09:54.185 -> [654290] Proto print...
16:09:54.185 -> [654292] Freeheap: 7904
16:09:54.219 -> [654294] isJson: {"data":{"timing":[{"task":0,"ena":1,"day":"1000011","tim":971,"act":[{"btn-abc":"tap"}]}]},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:09:54.219 -> [654313] MQTT Publish...
16:09:54.219 -> [654315] Freeheap: 7904
16:09:54.524 -> [654625] {"data":{"timing":[{"task":0,"ena":1,"day":"1000011","tim":971,"act":[{"btn-abc":"tap"}]}]},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:09:54.524 -> [654631] ...OK!
16:09:54.558 -> [654633] Freeheap: 7232
16:09:54.558 -> [654635] Freeheap: 8264
16:09:54.558 -> [654637] Freeheap: 8264
16:09:54.558 -> [654640] autoManager begin: 0 1
16:10:26.958 -> [687072] Got: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"cd79d68e0b7511ec88c95254","toDevice":"3E9ADF08RXH01ZOG7QN6Y7P7"}
16:10:26.992 -> [687074] data: {"get":"state"}
16:10:26.992 -> [687076] fromDevice: cd79d68e0b7511ec88c95254
16:10:26.992 -> [687080] Authority uuid
16:10:26.992 -> [687103] parse data: {"get":"state"}
16:10:26.992 -> [687103] defined BLINKER_ARDUINOJSON
16:10:26.992 -> [687104] autoManager begin: 0 0
16:10:27.026 -> [687104] autoFormatData key: state, json: "state":"online"
16:10:27.026 -> [687107] new.
16:10:27.026 -> [687108] timer codes: 100
16:10:27.026 -> [687110] autoFormatData key: timer, json: "timer":"100"
16:10:27.026 -> [687115] add.
16:10:27.026 -> [687116] autoFormatData key: version, json: "version":"0.1.0"
16:10:27.026 -> [687122] add.
16:10:27.026 -> [687123] print: {"state":"online","timer":"100","version":"0.1.0"}
16:10:27.026 -> [687129] Proto print...
16:10:27.026 -> [687131] Freeheap: 8208
16:10:27.026 -> [687133] isJson: {"data":{"state":"online","timer":"100","version":"0.1.0"},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:10:27.060 -> [687149] MQTT Publish...
16:10:27.060 -> [687151] Freeheap: 8208
16:10:27.365 -> [687460] {"data":{"state":"online","timer":"100","version":"0.1.0"},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:10:27.365 -> [687463] ...OK!
16:10:27.365 -> [687465] Freeheap: 7536
16:10:27.365 -> [687467] Freeheap: 8568
16:10:27.365 -> [687469] heartBeat isParsed
16:10:27.365 -> [687472] checkNum count: 1
16:10:27.405 -> [687474] isParsed
16:10:57.378 -> [717482] MQTT Ping!
16:10:57.378 -> [717482] Freeheap: 10488
16:10:58.813 -> [718909] Connecting to MQTT...
16:11:00.446 -> [720562] MQTT Connected!
16:11:00.446 -> [720563] Freeheap: 10488
16:11:30.477 -> [750574] MQTT Ping!
16:11:30.477 -> [750574] Freeheap: 10680
16:11:31.914 -> [752005] Connecting to MQTT...
16:11:30.477 -> [750574] MQTT Ping!
16:11:30.477 -> [750574] Freeheap: 10680
16:11:31.914 -> [752005] Connecting to MQTT...
16:11:35.457 -> [755569] MQTT Connected!
16:11:35.457 -> [755569] Freeheap: 10376
16:11:56.186 -> [776296] Got: {"deviceType":"DiyArduino","data":{"get":"state"},"fromDevice":"cd79d68e0b7511ec88c95254","toDevice":"3E9ADF08RXH01ZOG7QN6Y7P7"}
16:11:56.220 -> [776298] data: {"get":"state"}
16:11:56.220 -> [776301] fromDevice: cd79d68e0b7511ec88c95254
16:11:56.220 -> [776305] Authority uuid
16:11:56.220 -> [776327] parse data: {"get":"state"}
16:11:56.220 -> [776327] defined BLINKER_ARDUINOJSON
16:11:56.220 -> [776328] autoManager begin: 0 0
16:11:56.220 -> [776328] autoFormatData key: state, json: "state":"online"
16:11:56.254 -> [776331] new.
16:11:56.254 -> [776332] timer codes: 100
16:11:56.254 -> [776335] autoFormatData key: timer, json: "timer":"100"
16:11:56.254 -> [776339] add.
16:11:56.254 -> [776341] autoFormatData key: version, json: "version":"0.1.0"
16:11:56.254 -> [776346] add.
16:11:56.254 -> [776348] print: {"state":"online","timer":"100","version":"0.1.0"}
16:11:56.254 -> [776353] Proto print...
16:11:56.254 -> [776356] Freeheap: 8400
16:11:56.254 -> [776358] isJson: {"data":{"state":"online","timer":"100","version":"0.1.0"},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:11:56.287 -> [776373] MQTT Publish...
16:11:56.287 -> [776375] Freeheap: 8400
16:11:56.607 -> [776684] {"data":{"state":"online","timer":"100","version":"0.1.0"},"fromDevice":"3E9ADF08RXH01ZOG7QN6Y7P7","toDevice":"cd79d68e0b7511ec88c95254","deviceType":"OwnApp"}
16:11:56.607 -> [776687] ...OK!
16:11:56.607 -> [776689] Freeheap: 7728
16:11:56.607 -> [776691] Freeheap: 8760
16:11:56.607 -> [776693] heartBeat isParsed
16:11:56.607 -> [776696] checkNum count: 1
16:11:56.607 -> [776698] isParsed
|