Sleep documentation inconsistencies help please
Posted: Tue Feb 09, 2016 9:14 pm
Hi All
I'm trying to understand the Sleep modes for the esp8266/Arduino project and Espressif, and one of the things making this very hard is some inconsistencies around the documentation I'm finding.
References:
v1.6.5 had a very good reference including sleep
http://arduino.esp8266.com/versions/1.6 ... rence.html
v2.00+ appears to have been stripped of alot of info
http://esp8266.github.io/Arduino/versio ... rence.html
http://esp8266.github.io/Arduino/versio ... rence.html
https://github.com/esp8266/Arduino/blob ... ference.md
v1.6.5 has the command as:
The Wiki lists the command as 2 separate lines which I'm assuming is defunct:
I'm also trying to understand how under v1.6.5 the sleep modes relate with the Espressif documentation i.e
WAKE_RF_DEFAULT = Option 0
WAKE_RFCAL = Option 1
WAKE_NO_RFCAL = Option 2
WAKE_RF_DISABLED. = Option 4
and in layman's terms, what exactly the RF Cal is/does/means.
How does this relate to the other modes listed by Espressif as:
Modem-sleep
Light-sleep
Deep-sleep
My aim is for the ESP to be constantly reading the value of a sensor sleeping between cycles and only connect to WiFi to upload data on a much less periodic timeframe.. Can anyone suggest the best mode to use for this?
Thanks in advance for any information/help.
I'm trying to understand the Sleep modes for the esp8266/Arduino project and Espressif, and one of the things making this very hard is some inconsistencies around the documentation I'm finding.
References:
v1.6.5 had a very good reference including sleep
http://arduino.esp8266.com/versions/1.6 ... rence.html
v2.00+ appears to have been stripped of alot of info
http://esp8266.github.io/Arduino/versio ... rence.html
http://esp8266.github.io/Arduino/versio ... rence.html
https://github.com/esp8266/Arduino/blob ... ference.md
v1.6.5 has the command as:
Code: Select all
ESP.deepSleep(microseconds, mode)
The Wiki lists the command as 2 separate lines which I'm assuming is defunct:
Code: Select all
system_deep_sleep_set_option(4);
system_deep_sleep(10000000);
I'm also trying to understand how under v1.6.5 the sleep modes relate with the Espressif documentation i.e
WAKE_RF_DEFAULT = Option 0
WAKE_RFCAL = Option 1
WAKE_NO_RFCAL = Option 2
WAKE_RF_DISABLED. = Option 4
and in layman's terms, what exactly the RF Cal is/does/means.
How does this relate to the other modes listed by Espressif as:
Modem-sleep
Light-sleep
Deep-sleep
My aim is for the ESP to be constantly reading the value of a sensor sleeping between cycles and only connect to WiFi to upload data on a much less periodic timeframe.. Can anyone suggest the best mode to use for this?
Thanks in advance for any information/help.