-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adde methods to se if static IP addresses were configured, and what those addresses are #1720
base: master
Are you sure you want to change the base?
Conversation
those addresses are: //check if static network configuration is set bool isStaticIp(void); //provides static host ip address provided method isStaticIp() returns true void getStaticIp(IPAddress* staticIp); //provides static gateway ip address provided method isStaticIp() returns true void getStaticGw(IPAddress* staticGw); //provides static network mask provided method isStaticIp() returns true void getStaticSn(IPAddress* staticSn); //provides static DNS ip address provided method isStaticIp() returns true void getStaticDns(IPAddress* staticDns);
Do you have any plans to update it to a product that supports static IP settings? |
This is all stuff you can do in code already |
Could you just give a hint on how? |
A small codesnip: |
Static configs are not stored in flash, so user code has to store and recall them. So no need for wm specific wrappers |
That is exactly why I want to know where to fetch the config, I.e. using: bool isStaticIp(void); |
I am assuming this only works right after you save wifi ? |
Correct, after having saved WiFi, I use these method to check if a static address was configured, and if so I fetch the static addresses using these methods, if not static I fetch the DHCP assigned addresses using the normal WiFi methods. |
Hi again, what is the status, will my proposed changes be merged? |
To be able to find out if the network with static addresses or with DHCP following methods are proposed: