devices have style codes
This commit is contained in:
parent
c6e8c2528d
commit
506deb7e5e
|
@ -27,7 +27,8 @@
|
|||
namespace ARTNET {
|
||||
|
||||
Controller::Controller()
|
||||
: minimum_polling_interval(2500)
|
||||
: Device(StController)
|
||||
, minimum_polling_interval(2500)
|
||||
, _periodic_polling_enabled(true)
|
||||
, _pollster(std::thread(&Controller::_periodic_polling, this))
|
||||
, last_poll(std::chrono::system_clock::from_time_t(0))
|
||||
|
|
|
@ -28,13 +28,15 @@ namespace ARTNET {
|
|||
|
||||
/**
|
||||
* @brief Device::Device
|
||||
* @param style
|
||||
*
|
||||
* \note A ArtPollReply packet is required to be broadcast to the Directed Broadcast address by
|
||||
* all Art-Net devices on power up. Since information in that packet requres a fully configured
|
||||
* device, it must be specifically sent later.
|
||||
*/
|
||||
Device::Device()
|
||||
: diagnostic_reporting_threshold(DpCritial)
|
||||
Device::Device(Style style)
|
||||
: styleCode(style)
|
||||
, diagnostic_reporting_threshold(DpCritial)
|
||||
, _shortName("OpenLCP Device")
|
||||
, _longName("Generic OpenLCP Art-Net Device")
|
||||
{
|
||||
|
|
|
@ -38,7 +38,9 @@ using ACN::SDT::UDP::ipAddress;
|
|||
class Device
|
||||
{
|
||||
public:
|
||||
explicit Device();
|
||||
explicit Device(Style);
|
||||
|
||||
const Style styleCode; //!< \cite ARTNET The Style code defines the equipment style of the device.
|
||||
|
||||
void receive(ACN::PDU::Stream);
|
||||
void receive(std::shared_ptr<Packet>);
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
namespace ARTNET {
|
||||
|
||||
Node::Node()
|
||||
: Device(StNode)
|
||||
{
|
||||
setShortName("OpenLCP Node");
|
||||
setLongName("Generic OpenLCP Art-Net Node");
|
||||
|
|
Loading…
Reference in New Issue
Block a user