esp_deep_sleep_try_to_start() function
Enter deep sleep with the configured wakeup options The reason for the rejection can be such as a short sleep time.
Return value
- No return - If the sleep is not rejected. - ESP_ERR_SLEEP_REJECT sleep request is rejected(wakeup source set before the sleep request)
Notes
In general, the function does not return, but if the sleep is rejected, then it returns from it.