MQTT keep-alive setting?

Gday,

Is it possible to enable or adjust the MQTT binding keep-alive settings.

I have two broker connections setup, mosquitto & a mysensors gateway. The mosquitto broker (for owntracks) is working really well however every 2 minutes, almost exactly, the connection to the mysensors broker drops and then reconnects.

After a little reading, here, I noticed that it is the clients job to keep the connection to the broker alive. So was wondering if there is a setting somewhere I could experiment with.

Regards,
George

There is, I’ve added it to the wiki:

mqtt:<broker>.keepAlive=<keepAlive>

Davy,

Wonderful, thanks for that I will give it a go.

Kind Regards,
George