I have a problem with a timeout connection when I use SIM800A to subscribe to a topic on cloudmqtt. All is ok when I send the connect and subscribe packet with AT commands, but after 2 minutes the SIM800A disconnects from cloudmqtt and closes the TCP connection. I think the problem is that the TCP connection times out. I want SIM800 to keep its connection to the server in order to subscribe to messages from that server at anytime.
Has anyone had the same problem? How do I solve this problem?
I appreciate your reply.