I'm using an esp8266 to turn on and off a led lamp I use as alarm clock; therefore the esp has to be always connected to listen to UDP commands and one in 5 mins to refresh the NTP time via UDP request.
I noticed that the chip gets really hot even if the light is off and it hasn't been used for a whole day (but always connected and listening).
I'm not really founded in coding, so here is my (perhaps stupid) question: is there a way to put the esp in "sleep state" or to prevent it from overheating, but keeping it online and ready to react to UDP inputs?
Read about deep sleep but that seems not adequate.
Thanks in advance!
Dave