-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_wifi.h
61 lines (36 loc) · 1.16 KB
/
setup_wifi.h
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
54
55
56
57
58
59
60
#ifndef SETUP_WIFI_h
#define SETUP_WIFI_h
#include <WiFiManager.h>
IPAddress staticIP(0,0,0,0);
IPAddress consoleIP; //IP of console
WiFiManager wifiManager;
void setupWifiManager();
void updateValuesCallback(WiFiManager *manager);
void saveConfigCallback ();
void apSetupCallback (WiFiManager *manager);
void wifiLoopCallback(WiFiManager *manager);
void interpretSetupWifi(Buttons key);
void displaySetupWifi();
void saveSetupWifi();
void interpretSetupWifiPassword(Buttons key);
void displaySetupWifiPassword();
void saveSetupWifiPassword();
void connectWifi();
void enableAccessPoint();
void updateIP(IPAddress &ip, byte storeAddr);
void readIP(IPAddress &ip, byte storeAddr);
void updateEEPROMStaticIP(IPAddress gateway, IPAddress subnet);
void updateEEPROMDhcpIP();
void updateEEPROMConsoleIP();
void readEEPROMIP(IPAddress &gateway, IPAddress &subnet);
void readEEPROMConsoleIP();
void displaySetupNetworkType();
void interpretSetupNetworkType(Buttons key);
void saveSetupNetworkType();
void displaySetupIp();
void interpretSetupIp(Buttons key);
void saveSetupIp();
bool getIsDHCP();
void displaySetupServer();
void interpretSetupServer(Buttons key);
#endif