2019-07-10 16:20:58 +00:00
|
|
|
/**
|
|
|
|
* Configuration template file, copy it to config.h
|
|
|
|
* and make your changes there.
|
|
|
|
*/
|
2019-07-10 16:24:22 +00:00
|
|
|
#define DB_HOST "localhost"
|
2019-07-10 16:20:58 +00:00
|
|
|
#define DB_USER "energy-meter"
|
|
|
|
#define DB_PASS ""
|
|
|
|
#define DB_PORT 3306
|
|
|
|
#define SQL "CALL vn.energyMeter_record(%d, %d)"
|
|
|
|
#define DELAY 100
|
|
|
|
#define DEBUG_INTERVAL 1000
|
|
|
|
#define RECORD_INTERVAL 60000
|
|
|
|
#define N_INPUTS 9
|
|
|
|
|
|
|
|
int pins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
|
|
|
|
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
|