17 lines
436 B
C
17 lines
436 B
C
|
/**
|
||
|
* Configuration template file, copy it to config.h
|
||
|
* and make your changes there.
|
||
|
*/
|
||
|
#define DB_HOST "db.verdnatura.es"
|
||
|
#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};
|