Function esp_idf_svc::hal::sys::esp_light_sleep_start

source ยท
pub unsafe extern "C" fn esp_light_sleep_start() -> i32
Expand description

@brief Enter light sleep with the configured wakeup options

@return

  • ESP_OK on success (returned after wakeup)
  • ESP_ERR_SLEEP_REJECT sleep request is rejected(wakeup source set before the sleep request)
  • ESP_ERR_SLEEP_TOO_SHORT_SLEEP_DURATION after deducting the sleep flow overhead, the final sleep duration is too short to cover the minimum sleep duration of the chip, when rtc timer wakeup source enabled