njfaria / SolPipLog

Logger for the PIP Inverter series ( USB / RS232 version )
Apache License 2.0
86 stars 32 forks source link

MQTT not starting correctly on wifi disconnect with 2.4.0 #40

Closed PoloB12 closed 4 years ago

PoloB12 commented 4 years ago

Hi, when my wifi disconnects, MQTT stops broadcasting. Activate and deactivate MQTT is enough to start it again. Any way to automate this ?

efkostya commented 4 years ago

confirm. I have a similar problem

njfaria commented 4 years ago

looking for solution... simulating it.

PoloB12 commented 4 years ago

By the way ; PVOutput continues normally and emoncms too, it's only MQTT that seems to be affected.

efkostya commented 4 years ago

I temporarily solved the problem by installing mosquitto on the same raspberry and specifying localhost as the broker's mqtt address. Local Mosquitto configured the bridge mode to the server broker. This way it works fine. When I configure solpiplog to the server address directly-if the ping or connection is lost-mqtt itself is not restored, although sending data to pvonline does not stop.

PoloB12 commented 4 years ago

I temporarily solved the problem by installing mosquitto on the same raspberry and specifying localhost as the broker's mqtt address. Local Mosquitto configured the bridge mode to the server broker. This way it works fine. When I configure solpiplog to the server address directly-if the ping or connection is lost-mqtt itself is not restored, although sending data to pvonline does not stop.

That's a smart solution, will look into that untill there's a final fix, thanks!

njfaria commented 4 years ago

please try the new version... need feedback if it works with your configuration.

efkostya commented 4 years ago

Thank you! I installed the new version, set it up on a remote mqtt server, and wait.. still working

PoloB12 commented 4 years ago

Yes, it looks like the problem is solved after some quick testing with the 2.5 version. Thanks !

efkostya commented 4 years ago

works fine thanks!