-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCommonData.h
More file actions
43 lines (35 loc) · 909 Bytes
/
CommonData.h
File metadata and controls
43 lines (35 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright (c) 2012 Yeelink.net by dapingliu <dapingliu@yeelink.net>
*/
#ifndef COMMONDATA_H_
#define COMMONDATA_H_
#include "Arduino.h"
#include "Defines.h"
#include "BoxLogic.h"
#include "SSDP.h"
#include "Mobile.h"
#include "BoxCOM.h"
#include "StatusLED.h"
#include "EepromManage.h"
#include "ButtonPushCheck.h"
class CommonData {
public:
byte mac[E2DA_BOX_MAC_LEN]; //MAC address for YeeBox
unsigned char version[E2DA_VERSION_LEN];
byte key[E2DA_BOX_KEY_LEN+1];
uint8_t deviceCount;
device_node_t deviceList[MAX_SUPPORTED_LAMPS]; //list to store lamp status
//Box mode related
boxMode_t _mode;
unsigned long _waitStartTime;
//pointer to each component
class BoxLogic *logic;
class SSDP *ssdp;
class Mobile *mobile;
class BoxCOM *com;
class StatusLED *leds;
class ButtonPushCheck *btn;
void setup();
bool addNewDevice(char* mac, uint8_t type);
};
#endif /* COMMONDATA_H_ */