elementzonline / SIM800_MQTT

Visit our blog/website for more information
http://www.elementzonline.com
GNU General Public License v3.0
170 stars 96 forks source link

KeepAlive not attempting to reconnect #36

Closed pratikidea closed 3 years ago

pratikidea commented 4 years ago

If somehow gsm signal goes keep alive not reattempting to connect tcp and mqtt. It's stuck in tcpflag true state. Please advice.

Arduino nano Sim800c

marcosdepo commented 4 years ago

I'm trying to refresh _tcpStatus = sendATreply("AT+CIPSTATUS\r\n", "STATE", 4000); inside GSM_MQTT::processing() after some time TCP connection falls down and AT+CIPSTATUS responses IP INITIAL

marcosdepo commented 4 years ago

check https://github.com/elementzonline/SIM800_MQTT/pull/37#issue-368196204

elementzonline commented 4 years ago

Hi @marcosdepo , Thanks for the update.

@pratikidea, Please confirm whether the issue got solved using these changes.