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
-
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.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 14 days ago -
Human presence sensors....
General Discussion • 31 Jan 2025, 10:54 • skywatch 9 Feb 2025, 19:36 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 11 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29