Menu

Nouvelle fonctionnalité

Help
Casi
2009-04-29
2012-12-14
  • Casi

    Casi - 2009-04-29

    Bonjour,

    Y a t-il un espoir dans une future version a ce que le serveur xml renvoie un etat apres changement constaté sur le bus.

    Ceci serait idéal pour avoir une visu en temps reel sans a avoir a interroger regulierement les etats et consommer de la ressource inutilement.

    Trés cordialement,
    Yannick

     
    • jef2000

      jef2000 - 2009-05-12

      Fonctionnalité discutée ici:
      http://groups.google.be/group/domotique-EIB/browse_thread/thread/a867a441640ba5d3#

      For english speaking folks:
      I made a patch to allow a client to be notified about object value changes on the XML interface.
      The communication looks like this:
      Request :<admin><notification><register id='dim_value_salon'/></notification></admin>
      Response:<admin status='success'/>

      Then when the object value changes, we receive:
      <notify id='dim_value_salon'>64</read>
      <notify id='dim_value_salon'>128</read>

      And you can disable the notification like this:
      Request :<admin><notification><unregister id='dim_value_salon'/></notification></admin>
      Response:<admin status='success'/>

      The patch is available here: http://www.ouaye.net/linknx/other/object-value-notification-patch.txt
      It's still "proof of concept" code. Use it at your own risks.

      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.