[PR #1720] Adde methods to se if static IP addresses were configured, and what those addresses are #1811

Open
opened 2026-02-28 02:13:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/1720
Author: @jonasbjurel
Created: 3/13/2024
Status: 🔄 Open

Base: masterHead: getStatic


📝 Commits (1)

  • 337278c Adde methods to se if static IP addresses were configured, and what

📊 Changes

2 files changed (+71 additions, -1 deletions)

View changed files

📝 WiFiManager.cpp (+55 -0)
📝 WiFiManager.h (+16 -1)

📄 Description

To be able to find out if the network with static addresses or with DHCP following methods are proposed:

//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);

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tzapu/WiFiManager/pull/1720 **Author:** [@jonasbjurel](https://github.com/jonasbjurel) **Created:** 3/13/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `getStatic` --- ### 📝 Commits (1) - [`337278c`](https://github.com/tzapu/WiFiManager/commit/337278c288329eade465cea10741f96d0f5d8541) Adde methods to se if static IP addresses were configured, and what ### 📊 Changes **2 files changed** (+71 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+55 -0) 📝 `WiFiManager.h` (+16 -1) </details> ### 📄 Description To be able to find out if the network with static addresses or with DHCP following methods are proposed: //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); --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1811
No description provided.