So I know the ESP32 on board has both light sleep and deep sleep modes, but I don't know how to access them.
Arduino won't recognize these commands from Espressif docs
esp_sleep_enable_timer_wakeup(SLEEP_TIME * 1000000);
esp_light_sleep_start();
I just want to go to sleep and wake up after a set time, how do I write that?