DHCP timeout

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
litris
New user
Posts: 4
Joined: 14 Feb 2018, 14:13

DHCP timeout

#1 Post by litris » 22 Feb 2018, 08:45

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,

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: DHCP timeout

#2 Post by grovkillen » 22 Feb 2018, 09:01

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 :idea: :idea: :idea:

TD-er
Core team member
Posts: 8748
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DHCP timeout

#3 Post by TD-er » 22 Feb 2018, 22:45

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests