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! :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login