Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
722
Widok
0
08/07/2021 7:52 pm
Topic starter
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 Answer
0
08/07/2021 7:53 pm
Topic starter
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.