Forum

arduino: error: cal...
 
Powiadomienia
Wyczyść wszystko

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

1 Wpisy
1 Użytkownicy
0 Reactions
853 Widoki
0
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
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.

 

Twoja odpowiedź

Nazwa autora

E-mail autora

Twoje zapytanie *

 
Podgląd 0 rewizje Zapisano
Udostępnij: