6 #include <QNetworkAccessManager> 7 #include <QHostAddress> 12 #include <leddevice/LedDevice.h> 39 QMap<int, int> lastColorRedMap;
40 QMap<int, int> lastColorGreenMap;
41 QMap<int, int> lastColorBlueMap;
44 bool joinedMulticastgroup;
58 bool init(
const QJsonObject &deviceConfig);
61 static LedDevice* construct(
const QJsonObject &deviceConfig);
67 virtual int switchOff();
76 virtual int write(
const std::vector <ColorRgb> &ledValues);
79 QNetworkAccessManager *_manager;
82 QString _multicastGroup;
85 bool _useOrbSmoothing;
91 int _skipSmoothingDiff;
94 int _multiCastGroupPort;
100 QHostAddress _groupAddress;
103 QUdpSocket * _udpSocket;
106 QVector<unsigned int> _orbIds;
115 void setColor(
unsigned int orbId,
const ColorRgb &color,
int commandType);
122 void sendCommand(
const QByteArray &bytes);
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
Implementation for the AtmoOrb.
Definition: LedDeviceAtmoOrb.h:34
AtmoOrbLight(unsigned int id)
Constructs the light.
Definition: LedDeviceAtmoOrb.cpp:11
Definition: LedDeviceAtmoOrb.h:16
Plain-Old-Data structure containing the red-green-blue color specification.
Definition: ColorRgb.h:13