thingspeak mqtt has big delay
Hello,
I am sending mqtt values from esp8266 devices to different channels - e.g. https://thingspeak.com/channels/1182897
The values are sent correctly and also show up on the channel's page correctly and quickly in time.
But mqtt receivers are getting the data with a varying long delay. Often the delay is 1h, so I first thought, this could be a time zone problem. But that's not the case.
I tried two different mqtt clients: Both get the values at the same (late time): E.g. when I now get a value from channels/1182897/subscribe/fields/field3 and look into the history of values (using "Data Import/Export") then this value can be found 20 minutes up to 1 hour ago. This can also be confirmed when looking into the device's logs.
What could I do to be up-to-date with my values? Thank you very much. Dirk
10 Comments
Time DescendingNow, I changed the main subscriber to use the new mqtt3 while leaving the publishers untouched (using the old mqtt).
This seems to have solved the problem by itself: Got current values for about 5 Minutes. - Switching back to the old broker resulted in getting delayed values again. Using the new broker still brings me up-to-date values.
Thank you for the hint to switch to the new broker. I am aware that I also have to switch the other devices.
Do you have an explanation for that? Is the old broker overloaded?
I am still using mqtt.thingspeak.com. Thank you for reminding me to switch.
Could switching to mqtt3 improve the delay problem?
Do I have to switch all publishers and subscribers at once? Or are messages sent from one broker to the other?
Are you sending data to mqtt3.thingspeak.com or the legacy MQTT interface?