forked from supersjimmie/IthoEcoFanRFT
-
Notifications
You must be signed in to change notification settings - Fork 4
/
IthoPacket.h
56 lines (43 loc) · 896 Bytes
/
IthoPacket.h
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
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Author: Klusjesman, modified bij supersjimmie for Arduino/ESP8266
*/
#ifndef ITHOPACKET_H_
#define ITHOPACKET_H_
typedef enum IthoMessageType
{
ithomsg_unknown = 0,
ithomsg_control = 1,
ithomsg_join = 2,
ithomsg_leave = 3
};
//do not change enum because they are used in calculations!
enum IthoCommand
{
IthoUnknown = 0,
IthoJoin = 4,
IthoLeave = 8,
IthoStandby = 34,
IthoLow = 35,
IthoMedium = 36,
IthoHigh = 37,
IthoFull = 38,
IthoTimer1 = 41,
IthoTimer2 = 51,
IthoTimer3 = 61,
//duco c system remote
DucoStandby = 251,
DucoLow = 252,
DucoMedium = 253,
DucoHigh = 254
};
class IthoPacket
{
public:
uint8_t deviceId1[6];
uint8_t deviceId2[8];
IthoMessageType messageType;
IthoCommand command;
IthoCommand previous;
uint8_t counter; //0-255, counter is increased on every remote button press
};
#endif /* ITHOPACKET_H_ */