Wait is in what library?!
-
Hi,
Whenever I now try to use the wait function, I get a error: 'wait' was not declared in this scope and somewhere on the forum is stated that we should rather use a wait instead of the sleep function, but again, using which library?!
Thanks!
Kind regards
Richard
-
Using the MySensors library
You probably have something like this in your sketch:
MySensor gw;
All you need to do to wait is to call
gw.wait(1000);
where 1000 is the number of milliseconds to wait.
-
Easy enough! It works like a charm!
-
Great! Thanks for reporting back