What's the best way to pause the ESP to allow it to go into a low power Modem-Sleep/Light-Sleep mode for a set duration of time?
My projects typically run 1 loop cycle then sleep for 1 minute and currently im using delay() to achieve this. (well actually I have a while loop for the entire duration but splits the delay() into smaller 5 second intervals to allow the ArduinoOTA.handle() function to be called and keep OTA happy).
Is there a more proper way to do this?
Thanks