moved maxID to beerbox struct and update in readPerson

moved drinksMax to beerbox struct and refactored to maxDrink
added if(debug) to all serial write and serial print statements

Moved BLE com to seperat file and added command and subcommandparsing
Added filename JSON method
This commit is contained in:
2016-07-07 09:52:14 +02:00
parent bed4087886
commit df94ff0654
5 changed files with 143 additions and 87 deletions

View File

@@ -1,4 +1,4 @@
#define NUM_OF_PEOPLE 25
#define NUM_OF_PEOPLE 25 // This is (thank myself) not used
#define NUM_OF_DRINKS 10
#define DRINK_NAME_MAX_LENGTH 13
#define FILE_NAME_LEN 8
@@ -31,6 +31,8 @@ typedef struct{
typedef struct{
Drink drinks[NUM_OF_DRINKS];
int waiting;
int maxDrink=0;
int maxID=0;
}Beerbox;
//this shall always just exist in a short term!