energy-meter/config.template.h

19 lines
467 B
C
Raw Permalink Normal View History

2019-07-10 16:20:58 +00:00
/**
* Configuration template file, copy it to config.h
* and make your changes there.
*/
2019-07-24 14:46:03 +00:00
#define DEBUG true
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
2019-07-24 14:46:03 +00:00
#define LED_PIN 13
2019-07-10 16:20:58 +00:00
int pins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};