![]() ![]() If this API returned 0 means that the configuration is set successfully, but the ESP8266 will not enter sleep mode immediately, it is going to sleep in the system idle task. This API can not be called after calling wifi_fpm_close. This API can only be called when force sleep function is enabled, after calling wifi_fpm_open. Return null ParametersĮsp_err_t esp_wifi_fpm_do_sleep (uint32_t sleep_time_in_us ) ¶įorce ESP8266 enter sleep mode, and it will wake up automatically when time out.Īttention 1. fpm_wakeup_cb_func will not be called if woke up by wifi_fpm_do_wakeup from MODEM_SLEEP_T type force sleep. fpm_wakeup_cb_func will be called after system woke up only if the force sleep time out (wifi_fpm_do_sleep and the parameter is not 0xFFFFFFF). Set a callback of waken up from force sleep because of time out.Īttention 1. Return null void esp_wifi_fpm_set_wakeup_cb ( fpm_wakeup_cb cb ) ¶ Wake ESP8266 up from MODEM_SLEEP_T force sleep.Īttention This API can only be called when MODEM_SLEEP_T force sleep function is enabled, after calling wifi_fpm_open. Return null void esp_wifi_fpm_do_wakeup (void ) ¶ Return null void esp_wifi_fpm_close (void ) ¶ This will lead to the weakest current, but the device can’t receive or transmit data after waking up.Īttention Force sleep function is disabled by default. 4 : Disable radio calibration after the deep-sleep wakeup (the same as modem-sleep). 2 : Radio calibration will not be done after the deep-sleep wakeup. 1 : Radio calibration will be done after the deep-sleep wakeup. option: radio option 0 : Radio calibration after the deep-sleep wakeup is decided by byte 108 of esp_init_data_default.bin (0~127byte). ![]() ![]() If this API is not called, default to be esp_deep_sleep_set_rf_option(1). Void esp_deep_sleep_set_rf_option (uint8_t option ) ¶Ĭall this API before esp_deep_sleep and esp_wifi_init to set the activity after the next deep-sleep wakeup. config: pointer to implementation-specific configuration structure (e.g.ESP_ERR_NOT_SUPPORTED if certain combination of values is not supported.ESP_ERR_INVALID_ARG if the configuration values are not correct.Set implementation-specific power management configuration. time_in_us: deep-sleep time, unit: microsecondĮsp_err_t esp_pm_configure ( const void * config ) ¶.Make sure esp_wifi_stop are called to close any connections and deinitialize the peripherals. esp_deep_sleep does not shut down WiFi and higher level protocol connections gracefully. system_deep_sleep(0): there is no wake up timer in order to wake up, connect a GPIO to pin RST, the chip will wake up by a falling-edge on pin RST Attention 3. XPD_DCDC should be connected to EXT_RSTB through 0 ohm resistor in order to support deep-sleep wakeup. Upon waking up, the device boots up from user_init.Īttention 1. The device will automatically wake up after the deep-sleep time set by the users. Functions ¶ void esp_deep_sleep (uint32_t time_in_us ) ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |