forked from pvtex/esp32-rfid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
69 lines (69 loc) · 2.24 KB
/
config.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
61
62
63
64
65
66
67
68
69
struct Config
{
bool dhcpEnabledEth = false;
IPAddress ipAddressEth = IPAddress(192, 168, 5, 1);
IPAddress gatewayIpEth = IPAddress(0, 0, 0, 0);
IPAddress subnetIpEth = IPAddress(255, 255, 255, 0);
IPAddress dnsIpEth = IPAddress(0, 0, 0, 0);
String ethlink = "not connected";
String ethmac = "";
int relayPin[MAX_NUM_RELAYS];
uint8_t accessdeniedpin = 255;
uint8_t beeperpin = 255;
uint8_t doorstatpin = 255;
uint8_t ledwaitingpin = 255;
uint8_t openlockpin = 255;
uint8_t wifipin = 255;
int wgd0pin = 255;
int wgd1pin = 255;
bool accessPointMode = false;
IPAddress accessPointIp;
IPAddress accessPointSubnetIp;
unsigned long activateTime[MAX_NUM_RELAYS];
unsigned long autoRestartIntervalSeconds = 0;
unsigned long beeperInterval = 0;
unsigned long beeperOffTime = 0;
byte bssid[6] = {0, 0, 0, 0, 0, 0};
char *deviceHostname = strdup("ESP32-ACTL");
bool dhcpEnabled = true;
IPAddress dnsIp;
uint8_t doorbellpin = 255;
char *doorName[MAX_NUM_RELAYS];
bool fallbackMode = false;
IPAddress gatewayIp;
char *httpPass = NULL;
IPAddress ipAddress;
int lockType[MAX_NUM_RELAYS];
uint8_t maxOpenDoorTime = 0;
bool mqttAutoTopic = false;
bool mqttEnabled = false;
bool mqttEvents = false; // Sends events over MQTT disables LittleFS file logging
bool mqttHA = false; // Sends events over simple MQTT topics and AutoDiscovery
char *mqttHost = NULL;
unsigned long mqttInterval = 180; // Add to GUI & json config
char *mqttPass = NULL;
int mqttPort;
char *mqttTopic = NULL;
char *mqttUser = NULL;
bool networkHidden = false;
char *ntpServer = NULL;
int ntpInterval = 0;
int numRelays = 1;
char *openingHours[7];
char *openingHours2[7];
bool pinCodeRequested = false;
bool pinCodeOnly = false;
bool wiegandReadHex = true;
bool present = false;
int readertype = 2;
int relayType[MAX_NUM_RELAYS];
bool removeParityBits = true;
IPAddress subnetIp;
const char *ssid;
char *tzInfo = (char *)"";
const char *wifiApIp = NULL;
const char *wifiApSubnet = NULL;
const char *wifiPassword = NULL;
unsigned long wifiTimeout = 0;
int wiegandbits = 58;
};