New LED Device - Cololight (#1070)

This commit is contained in:
LordGrey
2020-11-01 21:56:19 +01:00
committed by GitHub
parent bb652ade36
commit 83455441fa
12 changed files with 1476 additions and 164 deletions

View File

@@ -28,6 +28,8 @@ public:
///
~ProviderUdp() override;
QHostAddress getAddress() const { return _address; }
protected:
///
@@ -53,8 +55,7 @@ protected:
int close() override;
///
/// @brief Writes the given bytes/bits to the UDP-device and sleeps the latch time to ensure that the
/// values are latched.
/// @brief Writes the given bytes to the UDP-device
///
/// @param[in] size The length of the data
/// @param[in] data The data
@@ -63,6 +64,15 @@ protected:
///
int writeBytes(const unsigned size, const uint8_t *data);
///
/// @brief Writes the given bytes to the UDP-device
///
/// @param[in] data The data
///
/// @return Zero on success, else negative
///
int writeBytes(const QByteArray &bytes);
///
QUdpSocket * _udpSocket;
QHostAddress _address;