JohanKuster / homey-mqtt-client

App for Homey to talk to a MQTT host
2 stars 11 forks source link

Slow reconnecting after homey reboot, resource restriction or simple user error? #9

Open OttoWerse opened 4 years ago

OttoWerse commented 4 years ago

I was just wondering, if there is any way to get around the enormous time it takes (sometimes 5-10 minutes) to re-connect to the broker after a full homey reboot by fiddling with the settings, or if it's just homey being homey again.

I'm not that familiar with the connection-specific stuff, all my own MQTT applications simply use whatever paho-mqtt lib has set as default for everything except the IP and port. I tried to fiddle a bit with the keepalive, which I thought might affect this, but I didn't notice any difference between 0 (off), 30, 60 or 120 seconds, so any help would be much appreciated!

My backend/broker is Node-RED running Mosquito on Windows Server 2019 64bit, all on default settings afaik.