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