Open kedzior-io opened 2 years ago
Im running more or less same config, my mqtt broker is configured over raspberry pi, docker mosquito I will log the disconnection to check. I do the check each minute, I mean this function "if (!mqtt.connected())"
@emigbur , have you had a chance to check your logs? I'm wondering if this is related to the network provider or maybe there is a memory leak somewhere and it restarts the board.
// Connect to MQTT Broker boolean status = mqtt.connect("home");
By any chance do you have another device with the same MQTT Client name? It has to be unique.
@jupiter8888 nope. That's the only device connected to my MQTT broker. I think it´s more of a modem issue.
Hi @kedzior-io Did you solve the issue ? I have similar problem with SIM7000E
Many thanks in advance. Kind regards, Angel
I have a similar issue. Connection is not reliable. Sometimes it works for a few hours without a disconnect and sometimes it disconnects and reconnects every few minutes. Power supply and cellular signal are sufficient. I also ordered another antenna but same behaviour. I use the Tinygsm and pubsubclient libraries. In the debug log I can only see:
00:01:24:155 -> DATA ACCEPT:0,31 00:01:24:215 -> [726630] ### Unhandled: DATA ACCEPT:0,31 00:01:24:215 -> AT+CIPCLOSE=0
but I haven't been able to find the rootcause yet. I can see those disconnects with and without using the SSLClient library.
@superpance & @cho0p I gave up on the device. Pivoted to Raspberry Pi Zero with USB LTE modem. Way faster to get it running and way easier to code and debug. 🤷
I'm connecting to my own mqtt broker and testing the how stable the connection is and I'm getting a lot of modem disconnects.
I'm wondering of this is something related to the code or the network. I wouldn't say network coverage is a problem as I have tower nearby (also in city center). The device is powered with a proper 5V power supply.
This my log of when device is getting disconnected:
The code: