Menu

save and read object values

Help
Ronny H
2008-11-02
2012-12-14
  • Ronny H

    Ronny H - 2008-11-02

    Hi

    In my tests with linknx and KNXweb i often stops and restart the linknx. Then the KNXweb maybe shows the wrong status, because it became the information from linknx. LinKNX tries to read the KNX objects from the knx bus or use the "init" parameter from the xml config. In small buildings there is not a problem with the wrong status, but if there is not a periodic send of the status objects from the eib devices, it can take along time to show the right status in the KNXweb.

    Thats why, i think it is a good idea to save the status in a file or db, and read this value at the start of linknx. In my opinion i think that not all people needs or can use such a feature like this. For that way a start parameter is i good way.

    Is there a way to load the last object values at the start of linknx? If not, i'd like to say this is a feature request if you think so.

    Thanks in advance,

    Ronny

     
    • jef2000

      jef2000 - 2008-11-02

      Hi,

      From the linknx wiki page "Object Definition Syntax":
      The "init" parameter configures the initial object value at application startup. It can be any valid value for the object or one of the special keywords "request" and "persist". "Request" will perform a read operation on the KNX bus when the value is needed for the first time. "persist" will try to load a value from persistant storage (see persistence element in services section). If no "init" parameter is given, the default behavior is "request".

      there are currently two persistent storage back-ends available: Files and Mysql.
      This is also decribed in linknx wiki page "Configuration".

      Regards,

      Jean-François

       
      • Ronny H

        Ronny H - 2008-11-02

        oh i didn't see that. I've changed my xml config and it works fine.

        Thanks

        Ronny

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.