Files
ESPEasy/lib/Itho/IthoPacket.h
T
svollebregt b9673d4255 [P118] Adding Itho plugin to main reposity""
Adding P145 from the plugin playground as P118 to the main repo. Tested compiling of test_D and it seems to fit.
2021-10-10 20:24:15 +02:00

49 lines
774 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
};
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_ */