ThingSpeak upate delay blocks system
Posted: 28 Oct 2017, 10:12
Hi all,
I have a power meter sensor (MT681 EHZ, 3 values) reading every second. The result is also displayed in a webpage, also every second. That displays a real time power consumption in my home.
In order to push the values to ThingSpeak, I need to set the MessageDelay to 15 seconds. Its a ThingSpeak requirement.
When sending to ThingSpeak starts, the EasyESP pauses 15 seconds between the GET requests of each value- as it should.
Sadly, it also pauses everything else but background tasks (OTA and UDP) too. My sensor and the webpage do not get updated.
Q: is that really the intended behaviour or should'n we rather have a non blocking message queue ?
Q2: I did some more digging in the code. Seems like using thingspeak, each sensor transmits all vallues in one http request. The 15000 ms Message delay is therefore uselsee if I do not poll the sensor more often than 15s.
Is this setting then correct?
Device delay: 600s. ( Sensor gets polled every 10 minutes)
Message delay 0,
Send to controller (ThingSpeak). yes
I have a power meter sensor (MT681 EHZ, 3 values) reading every second. The result is also displayed in a webpage, also every second. That displays a real time power consumption in my home.
In order to push the values to ThingSpeak, I need to set the MessageDelay to 15 seconds. Its a ThingSpeak requirement.
When sending to ThingSpeak starts, the EasyESP pauses 15 seconds between the GET requests of each value- as it should.
Sadly, it also pauses everything else but background tasks (OTA and UDP) too. My sensor and the webpage do not get updated.
Q: is that really the intended behaviour or should'n we rather have a non blocking message queue ?
Q2: I did some more digging in the code. Seems like using thingspeak, each sensor transmits all vallues in one http request. The 15000 ms Message delay is therefore uselsee if I do not poll the sensor more often than 15s.
Is this setting then correct?
Device delay: 600s. ( Sensor gets polled every 10 minutes)
Message delay 0,
Send to controller (ThingSpeak). yes