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
  • 9
  • 14
  • 274
  • 5
  • 3

17
Online

11.2k
Users

11.1k
Topics

112.5k
Posts