mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-14 10:35:30 +00:00
Adding P145 from the plugin playground as P118 to the main repo. Tested compiling of test_D and it seems to fit.
49 lines
774 B
C++
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_ */ |