-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoxLogic.h
More file actions
32 lines (25 loc) · 692 Bytes
/
BoxLogic.h
File metadata and controls
32 lines (25 loc) · 692 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
/*
* Copyright (c) 2012 Yeelink.net by dapingliu <dapingliu@yeelink.net>
*/
#ifndef _BOXLOGIC_h
#define _BOXLOGIC_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "Defines.h"
#include "CommonData.h"
class BoxLogic
{
private:
class CommonData *_cmdata;
public:
void begin(CommonData *cmdata);
void loop();
//when there is a device status message comes from zigbee network
void updateDeviceStatus(char* mac, uint8_t type, char *online, char *R, char *G,
char *B, char *L, char *powerStatus, char *LQI, bool isNewDevice);
void deviceOnlineChange(uint8_t deviceIndex, bool online, bool isNewDevice);
};
#endif