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

Static IP #39

Closed
xoseperez opened this issue Jan 16, 2017 · 3 comments
Closed

Static IP #39

xoseperez opened this issue Jan 16, 2017 · 3 comments
Labels
enhancement New feature or request major wifi

Comments

@xoseperez
Copy link
Owner

Originally reported by: Martin Stahl (Bitbucket: xboxpro1, GitHub: xboxpro1)


Hello, first thank you for your great work, it is fantastic.

I have a question.

When i use Static IP and the Device is power up or resetet, it useses DHCP,
first i have to log in to the webserver, go to the wifi tab and hit the RECONNECT button.
Then the Device is reconnecting and use the Static IP.

Maybe it is possible to check the IP when connected, and compare it with the given Static IP,
when the IP is wrong the Device do an Auto-Reconnect??

Thanks..

@xoseperez
Copy link
Owner Author

Mmmm... maybe the auto-connect feature does not store static ip info. Will check that.

@xoseperez
Copy link
Owner Author

Indeed. The autoconnect feature does not store the static IP configuration. Instead of dealing with checking IP from the application code I modified the JustWifi library that handles the wifi connection. I have commited a change to the library (https://bitbucket.org/xoseperez/justwifi/commits/9e9edca2313b757eed2a55e55716cb7debd87383) that disables the autoconnect feature when using static IP and reenables it when using DHCP.

To fetch the changes from ESPurna you have to either pio lib update from PlatformIO or delete and reload the library from the Arduino IDE.

@xoseperez
Copy link
Owner Author

Changed in the master branch in version 1.5.0

@xoseperez xoseperez added major enhancement New feature or request wifi labels Jan 24, 2018
xoseperez added a commit that referenced this issue Jan 24, 2018
…est #39)

Conflicts:
	code/espurna/data/index.html.gz
	code/espurna/static/index.html.gz.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major wifi
Projects
None yet
Development

No branches or pull requests

1 participant