Closed Klaus-Lucas closed 1 month ago
Aktuell verlässt sich ism7mqtt darauf, dass es automatisch neu gestartet wird, wenn ein unvorhergesehener Fehler auftritt - dadurch werden auch bei einem Problem weiterhin Daten übertragen und das Problem im Log festgehalten. Dein erster Fehler tritt regelmäßig auf, wenn bereits ein anderes Gerät mit dem ISM Modul verbunden ist (oder das ISM7 glaubt noch eine Verbindung zu haben). Dein zweites Problem tritt nur auf, wenn der MQTT Server nicht erreichbar ist.
Bei beiden Problemen könnte ism7mqtt nicht mehr machen, als ein paar Sekunden warten und es neu versuchen - genau das passiert wenn es sich beendet und dann automatisch neu gestartet wird (wobei beim zweiten Problem potentiell Daten verloren gehen). Wenn ich das in der Software abfangen und ohne Neustart behandeln möchte steigt die Komplexität deutlich an. Ja, ich gebe dir recht, das ist nicht schön, aber in der aktuellen Version der für mich einfachste Weg mit den geringsten Nachteilen für die Nutzer.
Ich bekomme regelmäßig diese Fehlermeldungen. Kann sich das Programm nicht bei Wolf anmelden? Hatte sowas schon bei dem Wolf-SmartSet-Adapter gesehen (siehe 302). Könntest du das nicht abfangen und nur eine Fehlermeldung ohne Absturz machen oder eine Retry-Counter einbauen?
Ebenso bricht das Programm ab, wenn es die Daten nicht los wird: