Closed Wandmalfarbe closed 2 years ago
Setting MessageInterval to such large values will cause very strange results. I am working on moving the interval timer for controllers to the controller themselves and make a queue which will be scheduled. The current implementation is not right and causes all kinds of other issues. For example setting the MessageInterval to 15 seconds will at this moment completely stop operations on the ESP for 15 seconds, which is not what should be happening.
Edit: I removed the first screenshot from your post, since it contained an API-key.
I think #1572 ist the same problem
Just to note it here: The option Message Interval is called Message Delay in the wiki. A time of 15 seconds is recommended there when working with ThingSpeak.
@Wandmalfarbe I am aware of what ThingSpeak needs and that's one of the reasons I started this: https://github.com/letscontrolit/ESPEasy/pull/1669 The general idea is to have the controllers decide when to allow to send a new message and to schedule these tasks. So in terms of responsibilities of the new approach I am writing:
The current implementation is:
And waiting for so long means all kind of things timeout, or even crash.
This looks to have been fixed already, so the issue can be closed.
Summarize of the problem/feature request
ESPEasy works reliably when deep sleep is disabled. I have a BME280 sensor that sends data to the controller ThingSpeak. Because I'm using ThingSpeak, I set the value Message Interval in the advanced settings to
15000
. The controller and task settings are as follows:Controller Settings
Screenshot removed by @TD-er, since it contained an API key.
Task Settings
Up until this point everything works and I can see the values in ThingSpeak. Now I change the Sleep Mode values like in the following picture and save the page. Afterwards I connect
D0
withRST
on my ESP and wait for it to wake up and send values to ThingSpeak.Unfortunately no values arrive, the web interface is not accessible and the serial monitor displays the following:
Please note that I never checked the box Sleep on connection failure but the esp immediately goes back to sleep when the message
HTTP : connection failed
appears.System configuration
ESP board ESP Chip ID | 4827644 (0x49A9FC) ESP Chip Freq: | 80 MHz