MQTT keep alive dies when not publishing

Posts: 20
Joined: Wed Jan 23, 2019 8:41 am

MQTT keep alive dies when not publishing

Postby fmuller-pi » Tue Mar 12, 2019 5:40 am


I am facing an issue with my MQTT connection where my Google Cloud tells me that there is no more connection with my device because there was no keep alive when I don't publish anything for a while...
Also, after I subscribed successfully to my config, the config is only sent down to my device if I actually publish something to the Cloud first...
To me, this isn't how it should work, since you could totally just subscribe to a config without publishing, and the keep alive should be done as long as you established a prior connection to the Cloud and that internet connection is OK...
I am using the most up to date ESP RTOS SDK example.
Does anyone have an idea about what should be done here?


Who is online

Users browsing this forum: No registered users and 9 guests