1 #pragma once 2 3 #include "DomoticzHardware.h" 4 #include "hardwaretypes.h" 5 6 class Arilux : public CDomoticzHardwareBase 7 { 8 public: 9 explicit Arilux(const int ID); 10 ~Arilux(void); 11 bool WriteToHardware(const char *pdata, const unsigned char length) override; 12 void InsertUpdateSwitch(const std::string name, const int switchType, const std::string location); 13 private: 14 bool SendTCPCommand(uint32_t ip,std::vector<unsigned char> &command); 15 bool StartHardware() override; 16 bool StopHardware() override; 17 void Do_Work(); 18 private: 19 _tColor m_color; 20 std::shared_ptr<std::thread> m_thread; 21 }; 22