Files
ESPEasy/lib/Itho/IthoPacket.h
T

61 lines
971 B
C++

/*
* Author: Klusjesman, supersjimmie, modified and reworked by arjenhiemstra
*/
#ifndef ITHOPACKET_H_
#define ITHOPACKET_H_
enum IthoCommand
{
IthoUnknown = 0,
IthoJoin = 1,
IthoLeave = 2,
IthoStandby = 3,
IthoLow = 4,
IthoMedium = 5,
IthoHigh = 6,
IthoFull = 7,
IthoTimer1 = 8,
IthoTimer2 = 9,
IthoTimer3 = 10,
// duco c system remote
DucoStandby = 11,
DucoLow = 12,
DucoMedium = 13,
DucoHigh = 14,
OrconStandBy = 100,
OrconLow = 101,
OrconMedium = 102,
OrconHigh = 103,
OrconAuto = 104,
OrconTimer0 = 110,
OrconTimer1 = 111,
OrconTimer2 = 112,
OrconTimer3 = 113,
OrconAutoCO2 = 114
};
class IthoPacket {
public:
IthoCommand command;
uint8_t dataDecoded[32];
uint8_t dataDecodedChk[32];
uint8_t length;
uint8_t deviceType;
uint8_t deviceId[3];
uint8_t counter; // 0-255, counter is increased on every remote button press
};
#endif /* ITHOPACKET_H_ */