Adde methods to se if static IP addresses were configured, and what those addresses are#1720
Adde methods to se if static IP addresses were configured, and what those addresses are#1720jonasbjurel wants to merge 1 commit intotzapu:masterfrom
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: