Dependancies
Pre-requisites
Buy the components
After sleeping for a maximum period ESP.deepSleep(ESP.deepSleepMax())
, the ESP8266 wakes up to send a ping to IFTTT cloud. ESP.deepSleepMax()
returns (uint64_t)system_rtc_clock_cali_proc()*(0x80000000-1)/(0x1000)
.
system_rtc_clock_cali_proc
Function | Get RTC clock period |
---|---|
Prototype | uint32 system_get_rtc_time(void) |
Parameter | none |
Return | RTC clock period (in us); bit11 ~ bit0 are decimal. |
Example | os_printf("clk cal : %d \r\n",system_rtc_clock_cali_proc()>>12); |
Note