21 #ifndef PLUGINS_NANOLEAF_NANOLEAFPORT_H_ 22 #define PLUGINS_NANOLEAF_NANOLEAFPORT_H_ 26 #include "olad/Port.h" 27 #include "plugins/nanoleaf/NanoleafDevice.h" 28 #include "plugins/nanoleaf/NanoleafNode.h" 46 return m_node->SendDMX(m_target, buffer);
50 return "Controller: " + m_target.Host().
ToString();
60 #endif // PLUGINS_NANOLEAF_NANOLEAFPORT_H_ Represents Socket Addresses.
Definition: NanoleafNode.h:40
std::string Description() const
Fetch the string description for a Port.
Definition: NanoleafPort.h:49
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
BasicOutputPort(AbstractDevice *parent, unsigned int port_id, bool start_rdm_discovery_on_patch=false, bool supports_rdm=false)
Create a new BasicOutputPort.
Definition: Port.cpp:120
std::string ToString() const
Convert the IPV4Address to a string.
Definition: IPV4Address.cpp:98
#define OLA_UNUSED
Mark unused arguments & types.
Definition: Macro.h:62
Definition: NanoleafDevice.h:34
Definition: NanoleafPort.h:34
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
An IPv4 SocketAddress.
Definition: SocketAddress.h:78
bool WriteDMX(const DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition: NanoleafPort.h:45