Gitignore for config, password changed

This commit is contained in:
Juan Ferrer 2019-07-10 18:20:58 +02:00
parent 27ee2a7928
commit 7e3f548192
3 changed files with 18 additions and 17 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.h

16
config.template.h Normal file
View File

@ -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};

View File

@ -5,23 +5,7 @@
#include <MySQL_Cursor.h>
#include <MySQL_Connection.h>
#include <Dns.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
#include "config.h"
typedef struct Input {
int id;