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
1 out of 4
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 15 days ago -
ESP32 with LoRa
General Discussion • 31 Jan 2023, 11:06 • dhanushmh 7 days ago -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29 -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 14 days ago