botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
478 stars 216 forks source link

SIM7000 MQTT re-connection issue. #125

Open Utpal19 opened 5 years ago

Utpal19 commented 5 years ago

Hello, According to "SIM7000_Series_MQTT_Application_notes"` from here: https://www.waveshare.com/w/upload/d/d0/SIM7000_Series_MQTT_Application_Note_V1.00.pdf There are MQTT commands which makes it easier to handle and maintain MQTT connection. While I connect to MQTT broker by using AT+SMCONN command (which connect and maintain the connection) it works fine and connect to MQTT broker but if I restart my device when it's already connected to MQTT broker and try to reconnect again using AT+SMCONN command it takes too longer(aprx 4-5 mins) to connect again. Any help to fix this issue is welcome. Thank you. **I am Sorry for my English guys.

Rick-GO commented 5 years ago

Hi Utpal19,

With restarting your device, do you mean restarting you application MCU or also the SIM7000?

You can try to close the old connection first (AT+SMDISC) before starting a new connection.