Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to assign a link local address when DHCP client fails:"help wanted" #5437

Closed
amontefusco opened this issue Dec 4, 2018 · 3 comments
Closed

Comments

@amontefusco
Copy link

I need to connect ESP8266 device to ISOLATED networks, so networks where there are no services like DHCP and DNS.

While the mDNS and SD-DNS are working very well, I cannot find how to enable the lower layer of zero network configuration, i.e., how to autoconfigure a link-local address in case the DHCP server is not answering.

Could you point me to info on how to activate this feature?

@amontefusco amontefusco changed the title How to assign a link local address when DHCP client fails:"help wanted" How to assign a link local address when DHCP client fails:help wanted Dec 4, 2018
@amontefusco amontefusco changed the title How to assign a link local address when DHCP client fails:help wanted How to assign a link local address when DHCP client fails:"help wanted" Dec 4, 2018
@d-a-v
Copy link
Collaborator

d-a-v commented Dec 5, 2018

That is a fair request.
Currently, DHCP client in both lwIP-v1 and v2 are espressif code that do not use 169.254/16 (link-local).
I think upstream lwIP's DHCP client would do that and we should switch to it.
Before we can do that, you can use a timeout in the standard waiting loop (while (WiFi.status != WL_CONNECTED)...) and call WiFi.config(ip,gateway,subnet,dns) on timeout.

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 7, 2018

Currently, DHCP client in both lwIP-v1 and v2 are espressif code that do not use 169.254/16 (link-local).

I am wrong, lack of sleep. It's DHCP client, and I just enabled AUTOIP in lwip2 #5444

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 8, 2018

closed by #5444

@d-a-v d-a-v closed this as completed Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants