OpenWrt Forum Archive

Topic: IoT devices ESP8266 - how to minimize Wi-Fi connection time

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm currently developing an IoT device based on the well known ESP8266 module (ESP12F).
The device uses OpenWrt as connection router as well as MQTT broker and database host.
It's all working just fine, except for the Wi-Fi connection time that is not constant, ranging from about 900 miliseconds to more that 3 seconds.
Since the devices are running on batteries and go to sleep once data has been sent to database, the more they stay "awake" the more the battery is drawn, therefore the router connection time is crucial to the battery life.
I have made many tests on both sides IoT module and OpenWrt but with no luck.
Someone suggests to force a fixed IP address on the IoT module in order to avoid DHCP query, but in my tests that did not provide a real benefit.
Any suggestion is welcome.

AFAIK, the only known method to make faster connections from the ESP is to use a static IP address and avoid DHCP...

The discussion might have continued from here.