Function esp_idf_sys::esp_deep_sleep_try_to_start

source ยท
pub unsafe extern "C" fn esp_deep_sleep_try_to_start() -> esp_err_t
Expand description

@brief Enter deep sleep with the configured wakeup options

@note In general, the function does not return, but if the sleep is rejected, then it returns from it.

The reason for the rejection can be such as a short sleep time.

@return

  • No return - If the sleep is not rejected.
  • ESP_ERR_SLEEP_REJECT sleep request is rejected(wakeup source set before the sleep request)