6:01 am

September 30, 2020

Hi,
I'm developing the MQTT TCP for the SIM800 module, to publish and subscribe channel Thingspeak.
There is an issue related to the TCP connection between the SIM800 and Thingspeak server.
After 1 hour running, whenever I publish data to channel (successful), the TCP connection is closed,
although the conenction is still in alive time.
My setting:
+Publish data interval: 1 min
+Keep alive: 10 sec
+Mqtt server: mqtt.thingspeak.com
+Port: 1883
Plz help me!
4:10 pm


Moderators
March 7, 2017

In the documentation is says:
There is a one-hour timeout on idle MQTT connections
In general, we suggest MQTT clients should be coded to reconnect automatically. because disconnects can happen due to network instability at any time.
FYI, MATLAB answers is the preferred location for ThingSpeak Community support.
Most Users Ever Online: 166
Currently Online:
27 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
rw950431: 272
Vinod: 240
piajola: 95
turgo: 70
vespapierre: 63
Adarsh_Murthy: 62
Member Stats:
Guest Posters: 1
Members: 8665
Moderators: 1
Admins: 2
Forum Stats:
Groups: 3
Forums: 14
Topics: 1600
Posts: 5760
Newest Members:
bogart, estebanmateo93, mikewrite, onlinebusiness, winzy99, Zark_zeuganModerators: cstapels: 460
Administrators: Hans: 405, lee: 457