esp32_ethernet_milight_hub/lib/Udp/V6RgbwCommandHandler.h
2021-01-15 22:49:01 +01:00

40 lines
858 B
C++

#include <V6CommandHandler.h>
#ifndef _V6_RGBW_COMMAND_HANDLER_H
#define _V6_RGBW_COMMAND_HANDLER_H
enum RgbwCommandIds {
V2_RGBW_COLOR_PREFIX = 0x01,
V2_RGBW_BRIGHTNESS_PREFIX = 0x02,
V2_RGBW_COMMAND_PREFIX = 0x03,
V2_RGBW_MODE_PREFIX = 0x04,
V2_RGBW_ON = 0x01,
V2_RGBW_OFF = 0x02,
V2_RGBW_SPEED_DOWN = 0x03,
V2_RGBW_SPEED_UP = 0x04,
V2_RGBW_WHITE_ON = 0x05,
V2_RGBW_NIGHT_LIGHT = 0x06
};
class V6RgbwCommandHandler : public V6CommandHandler {
public:
V6RgbwCommandHandler()
: V6CommandHandler(0x0700, FUT096Config)
{ }
virtual bool handleCommand(
MiLightClient* client,
uint32_t command,
uint32_t commandArg
);
virtual bool handlePreset(
MiLightClient* client,
uint8_t commandLsb,
uint32_t commandArg
);
};
#endif