MQTT connection timeout

I’m new to Zanzito but in the log of mosquitto I noticed every 2 minutes a has exceeded timeout. I do see in the log of Zanzito that it’s reconnecting.

‘’’
Nov 15 12:30:20 copperhead mosquitto[32415]: 1510745420: Client paho1510742266707000000 has exceeded timeout, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: 1510745420: Socket error on client paho1510742266707000000, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: Client paho1510742266707000000 has exceeded timeout, disconnecting.
Nov 15 12:30:20 copperhead mosquitto[32415]: Socket error on client paho1510742266707000000, disconnecting.
‘’’

In the configuration I don’t use subcriptions, so why is it then that Zanzito keeps connecting? it connects but nothing is published to mqtt. What could be the reason of the disconnect?

What can I do to resolve it?

The client set a timeout when it connect, and should then send a kind of ping more often than the set timeout. Even if the client doesn’t publish/subscribe to anything, as soon as he is connected, he must maintain the connection active.

And this topic belong to Zanzito or Mosqito forum/github, it has few to do with home-assistant :slight_smile:

Thanks for the information. I thought this was the forum of Zanzito to asks questions about it.

Oh sorry, my bad, I though Zanzito was a separate project.
You are right your post belong here :blush:

For the timeout, could it be that your phone goes in standby and disconnect from the wifi? Or put the Zanzito app into sleep?

Yes the disconnect can be trigger of it or the device can fall a sleep, but should be good thing, saving battery! Especially that there is no subscription. I only activated location, device status and battery_level.

How does the app trigger a location update?