The MQTT TCP - using SIM800 | Arduino | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
The MQTT TCP - using SIM800
No permission to create posts
September 30, 2020
6:01 am
New Member
Forum Posts: 1
Member Since:
September 30, 2020
sp_UserOfflineSmall Offline


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:
+Port: 1883

Plz help me!

October 27, 2020
4:10 pm

Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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.

Forum Timezone: America/New_York

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_zeugan

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457