Smarteon / loxone-java

Java implementation of the Loxone™ communication protocol (Web Socket)
BSD 3-Clause "New" or "Revised" License
15 stars 10 forks source link

LoxoneApp should be reloaded after miniserver reconnect #185

Open jimirocks opened 1 year ago

jimirocks commented 1 year ago

Since reconnect could mean the the server has actually changed the program....

Is there some event coming from the miniserver before restart we could use tom implement the bahaviour?

TCke83 commented 1 year ago

According to the documentation you should keep the lastModified attribute value and check it against the miniserver after reconnect with the '/jdev/sps/LoxAPPversion3' command, if they are still the same, there is no need tot reload the structure file.