-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice.h
More file actions
53 lines (40 loc) · 786 Bytes
/
device.h
File metadata and controls
53 lines (40 loc) · 786 Bytes
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
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef DEVICE_H
#define DEVICE_H
#include <Arduino.h>
namespace Base {
class Device {
public:
Device();
// Base functions
bool boot();
void store();
void load();
void reboot();
void initWiFi();
// Accessors
IPAddress ip();
String name();
void setName(String);
WiFiMode mode();
void setMode(WiFiMode);
String ssid();
void setSSID(String);
String password();
void setPassword(String);
private:
void printConfig();
String m_name;
String m_ssid;
WiFiMode m_mode;
String m_version;
String m_password;
IPAddress m_ip;
bool m_nameChanged;
bool m_ssidChanged;
bool m_modeChanged;
bool m_passwordChanged;
int m_EEPROMSize = 0;
unsigned long lastPhysicalAccess;
};
} // Base::
#endif // DEVICE_H