Forum

arduino: error: cal...
 
Notifications
Clear all

arduino: error: call of overloaded 'sleep(long unsigned int&)' is ambiguous

1 Posty
1 Users
0 Likes
562 Widok
0
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
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.

 

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: