mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* add ability for default values in providerudp * udp: move switchOff into baseclass * udp: more code cleanups
33 lines
687 B
C++
33 lines
687 B
C++
#pragma once
|
|
|
|
// STL includes
|
|
#include <string>
|
|
|
|
// hyperion incluse
|
|
#include "ProviderUdp.h"
|
|
|
|
///
|
|
/// Implementation of the LedDevice interface for sending led colors via udp.
|
|
///
|
|
class LedDeviceUdpRaw : public ProviderUdp
|
|
{
|
|
public:
|
|
///
|
|
/// Constructs specific LedDevice
|
|
///
|
|
/// @param deviceConfig json device config
|
|
///
|
|
LedDeviceUdpRaw(const Json::Value &deviceConfig);
|
|
|
|
/// constructs leddevice
|
|
static LedDevice* construct(const Json::Value &deviceConfig);
|
|
|
|
///
|
|
/// Writes the led color values to the led-device
|
|
///
|
|
/// @param ledValues The color-value per led
|
|
/// @return Zero on succes else negative
|
|
///
|
|
virtual int write(const std::vector<ColorRgb> &ledValues);
|
|
};
|