-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.h
55 lines (46 loc) · 968 Bytes
/
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
#ifndef CONFIG_H_
#define CONFIG_H_
#include <Arduino.h>
#include <CircularBuffer.h>
#define VERSION "v1.5e"
// hardware config
#define RESET_ZIGATE 13
#define FLASH_ZIGATE 14
#define PRODUCTION 1
#define FLASH 0
#define RXD2 2 //16
#define TXD2 4 //17
// ma structure config
struct ConfigSettingsStruct {
bool enableWiFi;
char ssid[50];
char password[50];
char ipAddressWiFi[18];
char ipMaskWiFi[16];
char ipGWWiFi[18];
bool dhcp;
bool connectedEther;
char ipAddress[18];
char ipMask[16];
char ipGW[18];
int serialSpeed;
int tcpListenPort;
bool disableWeb;
bool enableHeartBeat;
double refreshLogs;
};
struct ZiGateInfosStruct {
char device[8];
char mac[8];
char flash[8];
};
typedef CircularBuffer<char, 1024> LogConsoleType;
#define DEBUG_ON
#ifdef DEBUG_ON
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINTLN(x) Serial.println(x)
#else
#define DEBUG_PRINT(x)
#define DEBUG_PRINTLN(x)
#endif
#endif