Menu

Object::read()

2010-07-09
2012-12-14
  • Michael Muhler

    Michael Muhler - 2010-07-09

    Hi Jean-François,

    why are you not preventing read requests for KNX objects which do not have the READ flag set.

    I would have expected that the whole bode of Object::read should be only executed,
    if the
    (flags_m & READ)
    condition is true.

    best regards
    Michael

     
  • jef2000

    jef2000 - 2011-01-08

    Hi,

    Sorry for the late answer, my wedding was the day after you posted this question, so I didn't see it :-(

    The "read" flag behaves like in ETS. It controls if linknx will answer to a read request coming from another device on the KNX bus.
    Actually,  Object::read is only called if you don't specify the initial value for an object. If you add parameter init="some value" to the object definition, it will never issue read request on the KNX bus, so there is no need for a flag.

    Regards,

    Jean-François

     

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.