Hi all,
I have an ESP12E board, waking up from deep sleep mode every 5 minutes, reading a sensor, sending the data to a mqtt broker and deep sleeping again. I'm using release mega-20180220.
I came across that a DHCP configuration fails to connect 30-40% of times, so measures are not sent in large periods (4-5 hours).
It tries to connect the AP for the 1st attempt, and when it fails, it does not retry, just reads the sensor (or not, depending on the state of the "sleep on connection failure" option) and sleeps again.
I have played with the "Connection Failure threshold" settings, but I don't notice any difference in the number of retries. Always one. Is this experimental setting working?
As I didn't know if it was a problem with the AP association or DHCP, I tried to set a static IP address. And it just works every time. No measure losses in the last 24 hours.
So, I don't know if this is an issue, but may be the DHCP timeout is too short?
Regards,
DHCP timeout
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: DHCP timeout
For deep sleep units I would recommend using static IP.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: DHCP timeout
But still, would be nice if DHCP also got its own state + retry timer.
Will add this to an issue about it: https://github.com/letscontrolit/ESPEasy/issues/922
I guess static IP is the best for deep sleep units, since their uptime is only a few seconds.
Will add this to an issue about it: https://github.com/letscontrolit/ESPEasy/issues/922
I guess static IP is the best for deep sleep units, since their uptime is only a few seconds.
Who is online
Users browsing this forum: No registered users and 134 guests