use IPAddress for IPConfiguratio

This commit is contained in:
technyon
2023-03-05 11:06:34 +01:00
parent 2757754531
commit 2dcbf919c8
3 changed files with 23 additions and 22 deletions

View File

@@ -8,12 +8,17 @@ public:
explicit IPConfiguration(Preferences* preferences, const bool& firstStart);
bool dhcpEnabled() const;
String ipAddress() const;
String subnet() const;
String defaultGateway() const;
String dnsServer() const;
const IPAddress ipAddress() const;
const IPAddress subnet() const;
const IPAddress defaultGateway() const;
const IPAddress dnsServer() const;
private:
Preferences* _preferences = nullptr;
IPAddress _ipAddress;
IPAddress _subnet;
IPAddress _gateway;
IPAddress _dnsServer;
};