-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.h
More file actions
40 lines (30 loc) · 1.17 KB
/
Copy pathsettings.h
File metadata and controls
40 lines (30 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef GYMCLOCK_SETTINGS_H
#define GYMCLOCK_SETTINGS_H
#include <IPAddress.h>
// Initializes the storage library, and loads settings from persistent storage into memory.
// This should be called before any other settings functions are called, and should be
// called only once at device startup.
void initSettings();
// Resets all settings to their default values. This only updates the in-memory settings -
// to persist the cleared settings, call storeSettings().
void clearSettings();
// Copy the current in-memory settings into persistent storage.
void storeSettings();
// Writes settings to the Debug output.
void dumpSettings();
// These lengths do not include the trailing null byte.
const int MAX_SSID_LENGTH = 31;
const int MAX_PASSWORD_LENGTH = 31;
char const * getWifiSsid();
bool setWifiSsid(String &ssid);
char const * getWifiPassword();
bool setWifiPassword(String &password);
bool getEnableStaticIp();
void setEnableStaticIp(bool enableStaticIp);
IPAddress getStaticIp();
void setStaticIp(const IPAddress &staticIp);
IPAddress getGatewayIp();
void setGatewayIp(const IPAddress &gatewayIp);
IPAddress getSubnetMask();
void setSubnetMask(const IPAddress &subnetMask);
#endif