31 #ifndef PLUGINS_ARTNET_ARTNETDEVICE_H_ 32 #define PLUGINS_ARTNET_ARTNETDEVICE_H_ 36 #include "olad/Device.h" 37 #include "plugins/artnet/messages/ArtNetConfigMessages.pb.h" 38 #include "plugins/artnet/ArtNetNode.h" 59 void EnterConfigurationMode() { m_node->EnterConfigurationMode(); }
60 void ExitConfigurationMode() { m_node->ExitConfigurationMode(); }
70 const std::string &request,
71 std::string *response,
74 static const char K_ALWAYS_BROADCAST_KEY[];
75 static const char K_DEVICE_NAME[];
76 static const char K_IP_KEY[];
77 static const char K_LIMITED_BROADCAST_KEY[];
78 static const char K_LONG_NAME_KEY[];
79 static const char K_LOOPBACK_KEY[];
80 static const char K_NET_KEY[];
81 static const char K_OUTPUT_PORT_KEY[];
82 static const char K_SHORT_NAME_KEY[];
83 static const char K_SUBNET_KEY[];
84 static const unsigned int K_ARTNET_NET;
85 static const unsigned int K_ARTNET_SUBNET;
86 static const unsigned int K_DEFAULT_OUTPUT_PORT_COUNT;
88 static const unsigned int POLL_INTERVAL = 10000;
116 void HandleOptions(Request *request, std::string *response);
121 void HandleNodeList(Request *request,
122 std::string *response,
128 #endif // PLUGINS_ARTNET_ARTNETDEVICE_H_ std::string DeviceId() const
The device ID.
Definition: ArtNetDevice.h:57
ArtNetDevice(AbstractPlugin *owner, class Preferences *preferences, class PluginAdaptor *plugin_adaptor)
Definition: ArtNetDevice.cpp:73
void PostPortStop()
Definition: ArtNetDevice.cpp:151
Definition: ArtNetDevice.h:47
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition: SchedulerInterface.h:34
Definition: PluginAdaptor.h:41
The actual Art-Net Node.
Definition: ArtNetNode.h:697
void Configure(ola::rpc::RpcController *controller, const std::string &request, std::string *response, ConfigureCallback *done)
Definition: ArtNetDevice.cpp:156
Definition: Preferences.h:147
bool StartHook()
Definition: ArtNetDevice.cpp:83
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
void PrePortStop()
Definition: ArtNetDevice.cpp:143
A RpcController object is passed every time an RPC is invoked and is used to indicate the success or ...
Definition: RpcController.h:42