Statistics: Posted by jonsmirl — Wed Apr 15, 2015 7:32 pm
Code:
Function:
Call this API before system_deep_sleep to set what the chip will do when deep-sleep wake up.
Prototype:
bool system_deep_sleep_set_option(uint8 option)
Parameter:
uint8 option :
deep_sleep_set_option(0): Radio calibration after deep-sleep wake up depends on init data byte 108.
deep_sleep_set_option(1): Radio calibration is done after deep-sleep wake up; this increases the current consumption.
deep_sleep_set_option(2): No radio calibration after deep-sleep wake up; this reduces the current consumption.
deep_sleep_set_option(4): Disable RF after deep-sleep wake up, just like modem sleep; this has the least current consumption; the device is not able to transmit or receive data after wake up.
Note:
Init data refers esp_init_data_default.bin.
Return:
true : succeed
false : fail
Statistics: Posted by ESP_Faye — Wed Apr 15, 2015 2:09 pm
Statistics: Posted by jonsmirl — Tue Apr 14, 2015 7:47 pm