4 #include "ProviderUdp.h" 6 #define TPM2_DEFAULT_PORT 65506 26 virtual bool init(
const QJsonObject &deviceConfig);
38 virtual int write(
const std::vector<ColorRgb> &ledValues);
42 int _tpm2TotalPackets;
LedDeviceTpm2net(const QJsonObject &deviceConfig)
Constructs specific LedDevice.
Definition: LedDeviceTpm2net.cpp:3
The ProviderUdp implements an abstract base-class for LedDevices using UDP packets.
Definition: ProviderUdp.h:15
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: LedDeviceTpm2net.cpp:9
Implementation of the LedDevice interface for sending led colors via udp tpm2.net packets...
Definition: LedDeviceTpm2net.h:11
static LedDevice * construct(const QJsonObject &deviceConfig)
constructs leddevice
Definition: LedDeviceTpm2net.cpp:20