energy-meter/config.template.h

19 lines
467 B
C

/**
* Configuration template file, copy it to config.h
* and make your changes there.
*/
#define DEBUG true
#define DB_HOST "localhost"
#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
#define LED_PIN 13
int pins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};