Wait is in what library?!
General Discussion
4
Posts
2
Posters
1.9k
Views
2
Watching
-
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! :)