Files
nuki_hub/networkDevices/IPConfiguration.h
2023-03-05 11:19:02 +01:00

25 lines
472 B
C++

#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;
};