add static ip config for wifi device
This commit is contained in:
19
networkDevices/IPConfiguration.h
Normal file
19
networkDevices/IPConfiguration.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <Preferences.h>
|
||||
|
||||
class IPConfiguration
|
||||
{
|
||||
public:
|
||||
explicit IPConfiguration(Preferences* preferences, const bool& firstStart);
|
||||
|
||||
bool dhcpEnabled() const;
|
||||
String ipAddress() const;
|
||||
String subnet() const;
|
||||
String defaultGateway() const;
|
||||
String dnsServer() const;
|
||||
|
||||
private:
|
||||
Preferences* _preferences = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user