8 #include <leddevice/LedDevice.h> 57 bool init(
const QJsonObject &deviceConfig);
66 virtual int write(
const std::vector<ColorRgb>& ledValues);
110 int sendSysEx(uint8_t systemId, uint8_t commandId, QByteArray msg);
bool isConnected()
return the conenction state
Definition: LedDeviceFadeCandy.cpp:67
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
Implementation of the LedDevice interface for sending to fadecandy/opc-server via network by using th...
Definition: LedDeviceFadeCandy.h:14
bool tryConnect()
try to establish connection to opc server, if not connected yet
Definition: LedDeviceFadeCandy.cpp:72
virtual ~LedDeviceFadeCandy()
Destructor of the LedDevice; closes the tcp client.
Definition: LedDeviceFadeCandy.cpp:16
int sendSysEx(uint8_t systemId, uint8_t commandId, QByteArray msg)
send system exclusive commands
Definition: LedDeviceFadeCandy.cpp:112
bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceFadeCandy.cpp:26
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceFadeCandy.cpp:21
int transferData()
transfer current opc_data buffer to opc server
Definition: LedDeviceFadeCandy.cpp:103
void sendFadeCandyConfiguration()
sends the configuration to fcserver
Definition: LedDeviceFadeCandy.cpp:136
LedDeviceFadeCandy(const QJsonObject &deviceConfig)
Constructs the LedDevice for fadecandy/opc server.
Definition: LedDeviceFadeCandy.cpp:8