Subversion Repositories ESP32_P1_Meter

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 6
Line 7... Line 7...
7
//#define UPDATE_INTERVAL 300000 // 5 minutes
7
//#define UPDATE_INTERVAL 300000 // 5 minutes
8
 
8
 
9
// * Baud rate for both hardware and software 
9
// * Baud rate for both hardware and software 
10
#define BAUD_RATE 115200
10
#define BAUD_RATE 115200
11
 
11
 
-
 
12
#define RX_PIN D7
-
 
13
#define TX_PIN D6
-
 
14
#define BAUD 115200
-
 
15
 
12
// The used serial pins, note that this can only be UART0, as other serial port doesn't support inversion
16
// The used serial pins, note that this can only be UART0, as other serial port doesn't support inversion
13
// By default the UART0 serial will be used. These settings displayed here just as a reference. 
17
// By default the UART0 serial will be used. These settings displayed here just as a reference. 
14
// #define SERIAL_RX RX
18
// #define SERIAL_RX RX
15
// #define SERIAL_TX TX
19
// #define SERIAL_TX TX
16
 
20
 
Line 72... Line 76...
72
long SHORT_POWER_OUTAGES;
76
long SHORT_POWER_OUTAGES;
73
long LONG_POWER_OUTAGES;
77
long LONG_POWER_OUTAGES;
74
long SHORT_POWER_DROPS;
78
long SHORT_POWER_DROPS;
75
long SHORT_POWER_PEAKS;
79
long SHORT_POWER_PEAKS;
76
 
80
 
-
 
81
long ACTUAL_SUMPOWER;
-
 
82
 
77
// * Set during CRC checking
83
// * Set during CRC checking
78
unsigned int currentCRC = 0;
84
unsigned int currentCRC = 0;
79
85