Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
859
Widoki
0
08/07/2021 7:52 pm
Rozpoczynający temat
src\main.cpp:83:18: error: call of overloaded 'sleep(long unsigned int&)' is ambiguous sleep(SLEEP_TIME); ^ In file included from C:\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\newlib/stdio.h:29:0, from C:\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:27, from .pio\libdeps\lolin32_lite\MySensors/MySensors.h:39, from src\main.cpp:10:
1 odpowiedź
0
08/07/2021 7:53 pm
Rozpoczynający temat
change sleep(SLEEP_TIME); to sleep(SLEEP_TIME,true); or sleep(SLEEP_TIME, false); where true/false is SmartSleep mode
Each sleep function has a "smart" variant, which sends heartbeat and process incoming messages before going to sleep. This is useful for sending out firmwares or commands for sleeping nodes. The controller must support buffering of messages and send them when node wakes up.