Nice write up on how to basically use “sleep” to slow down the ESP8255 so that it doesn’t drain a battery like crazy. This is pretty common with alot of embedded systems where they need to “sleep” between times they are needed so they don’t take the battery out too fast.
https://openhomeautomation.net/esp8266-battery/