gw.process -- how often this should be run?
-
[http://www.mysensors.org/download/sensor_api_15] 'Nodes that expects incoming messages, such as an actuator or repeating nodes, must check for new messages frequently'.
Any idea how often gw.process() should be called to not miss any messages?
-
I'm not sure. But the messages might be buffered. I always use the gw.wait(); in my main loop, because it delays the loop but keeps checking for messages while it's executing the delay.
-
How do you use gw.wait(ms) with the library version 1.4? [http://www.mysensors.org/download/sensor_api_14]
Is it implemented at all in this version? Switching to 1.5 at this point (of miserable HW development) is not appealing at all
-
Hi, just discovered the gw.wait() function. I suppose I should change
for (int i=0; i <= 30000; i++){
gw.process();
delay(1);
}for this?
gw.wait(30000);
Thanks!
-
Yes, you should
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07