21 #ifndef PLUGINS_ARTNET_ARTNETDEVICE_H_
22 #define PLUGINS_ARTNET_ARTNETDEVICE_H_
26 #include "olad/Device.h"
27 #include "plugins/artnet/messages/ArtNetConfigMessages.pb.h"
28 #include "plugins/artnet/ArtNetNode.h"
44 std::string DeviceId()
const {
return "1"; }
46 void EnterConfigurationMode() { m_node->EnterConfigurationMode(); }
47 void ExitConfigurationMode() { m_node->ExitConfigurationMode(); }
50 const std::string &request,
51 std::string *response,
54 static const char K_ALWAYS_BROADCAST_KEY[];
55 static const char K_DEVICE_NAME[];
56 static const char K_IP_KEY[];
57 static const char K_LIMITED_BROADCAST_KEY[];
58 static const char K_LONG_NAME_KEY[];
59 static const char K_LOOPBACK_KEY[];
60 static const char K_NET_KEY[];
61 static const char K_OUTPUT_PORT_KEY[];
62 static const char K_SHORT_NAME_KEY[];
63 static const char K_SUBNET_KEY[];
65 static const unsigned int POLL_INTERVAL = 10000;
78 void HandleOptions(Request *request, std::string *response);
79 void HandleNodeList(Request *request,
80 std::string *response,
86 #endif // PLUGINS_ARTNET_ARTNETDEVICE_H_