This commit is contained in:
iranl
2024-05-11 13:50:54 +02:00
parent 29d57dd621
commit f6d2eda3cb
51 changed files with 98 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <Preferences.h>
class IPConfiguration
{
public:
explicit IPConfiguration(Preferences* preferences);
bool dhcpEnabled() 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;
};