4 #ifndef _ARTNETINTERFACE_H_
5 #define _ARTNETINTERFACE_H_
8 #include "LumiverseCoreConfig.h"
12 #include <lib/libartnet/artnet.h>
13 #include <lib/libjson/libjson.h>
31 class ArtNetInterface :
public DMXInterface
43 ArtNetInterface(
string id,
string ip,
string broadcast =
"",
bool verbose =
false);
49 virtual void sendDMX(
unsigned char* data,
unsigned int universe);
51 virtual void closeInt();
55 virtual JSONNode toJSON();
57 virtual string getInterfaceType() {
return "ArtNetInterface"; }
59 string getIP() {
return m_ip; }
60 void setIP(
string ip) { m_ip = ip; }
62 string getBroadcast() {
return m_broadcast; }
63 void setBroadcast(
string bc) { m_broadcast = bc; }
66 void initUniverse(
int universe);
void init(const char *jsonPatchStr, const char *filename)
Initializes data structures.
Definition: Dumiverse.cpp:29
Contains functions for logging information to console or file.
Base class describing how DMX Interfaces should act.
Contains all core Lumiverse functions and variables.
Definition: Device.cpp:2