Queued send commands?



  • I use openhab and serial gw (ethernet component on its way). What is the best way to ensure a command gets sent if the node has a gw.wait or gw.sleep? I can see openhab sending the command, but if the node is sleeping it obviously doesnt get it.

    Could I just enable ack? would that force the gw to retry until it gets ack?

    Or should I just keep sending until I get the ack?

    TIA


  • Admin

    gw.wait is ok. It keeps node awake and process incoming messages.

    If you sleep the node it becomes more complicated. You could send something to the controller when waking up (and keep the node awake for a short time to receive new commands). And the controller buffers outgoing commands until it receives this "woke-up-message".

    If you enable ack on outgoing commands from the controller (and the node is sleeping) you won't get and ack message back... which indicates the node is down or is sleeping.


Log in to reply
 

Suggested Topics

  • 4
  • 20
  • 2
  • 4
  • 9
  • 3

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts