Beheben: mbed-Fehler 'wait' was not declared in this scope (PlatformIO)
English
Deutsch
Problem:
Beim Kompilieren Ihrer mbed / PlatformIO-Anwendung sehen Sie eine Fehlermeldung wie
output.txt
src/actuators.cpp:253:5: error: 'wait' was not declared in this scope
253 | wait(1.0);
| ^~~~Lösung
wait ist eine alte API und wurde zugunsten des C++-Standards ThisThread::sleep_for als veraltet markiert. Verwenden Sie
example.cpp
ThisThread::sleep_for(1s);Check out similar posts by category:
Embedded, Mbed, PlatformIO
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow