The code is simple, I simply wakeup, connect to the network, and send an HTTP request to the server, then go back to sleep. My guess is that the major consumption is when the ESP is trying to get the IP from the DHCP server, which takes considerable time. I'm wondering if I could put the IP as static, and just associate with the WLAN. Otherwise, I would try not to send the data every 30 minutes, but every hour or so, but this would reduce the number of readings I have.
Does anybody have a "best practice" or ideas on how to reduce the consumption?