Gitignore for config, password changed
This commit is contained in:
parent
27ee2a7928
commit
7e3f548192
|
@ -0,0 +1 @@
|
||||||
|
config.h
|
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* 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};
|
|
@ -5,23 +5,7 @@
|
||||||
#include <MySQL_Cursor.h>
|
#include <MySQL_Cursor.h>
|
||||||
#include <MySQL_Connection.h>
|
#include <MySQL_Connection.h>
|
||||||
#include <Dns.h>
|
#include <Dns.h>
|
||||||
|
#include "config.h"
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++ Configuration
|
|
||||||
|
|
||||||
#define DB_HOST "db.verdnatura.es"
|
|
||||||
#define DB_USER "energy-meter"
|
|
||||||
#define DB_PASS "UeNBY2wR3gxMd34A"
|
|
||||||
#define DB_PORT 3306
|
|
||||||
#define DELAY 100
|
|
||||||
#define DEBUG_INTERVAL 1000
|
|
||||||
#define RECORD_INTERVAL 60000
|
|
||||||
#define SQL "CALL vn.energyMeter_record(%d, %d)"
|
|
||||||
#define N_INPUTS 9
|
|
||||||
|
|
||||||
int pins[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
|
|
||||||
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
|
|
||||||
|
|
||||||
//+++++++++++++++++++++++++++++++++++++++++++ Code
|
|
||||||
|
|
||||||
typedef struct Input {
|
typedef struct Input {
|
||||||
int id;
|
int id;
|
||||||
|
|
Loading…
Reference in New Issue