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 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35