1
0
Fork 0

use the IP Address type from SDT

This commit is contained in:
Kevin Matz 2023-05-20 13:29:25 -04:00
parent cf06c0fa9a
commit c0dded8b94
2 changed files with 21 additions and 0 deletions

View File

@ -29,6 +29,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PRIVATE
LCP::ACN::SDT # for IP Address types
LCP::BufferStream
LCP::RDM
)

View File

@ -24,9 +24,12 @@
#pragma once
#include "packet.h"
#include <udp.h>
namespace ARTNET {
using ACN::SDT::UDP::ipAddress;
/**
* @brief The Device class is the base class for ARTNET::Controller
* and ARTNET::Node
@ -45,6 +48,23 @@ protected:
virtual void rxArtPoll();
virtual void txArtPollReply(std::shared_ptr<ArtPoll> = nullptr);
virtual void txArtDiagData();
/**
* @brief deviceIp
* @return
*
* \note Platform aware device types must return a valid IP address.
*/
virtual ipAddress deviceIp() const = 0;
/**
* @brief broadcastIp
* @return
*
* \note Platform aware device types must return their directed broadcast address.
*/
virtual ipAddress broadcastIp() const = 0;
virtual void rxArtTimeCode();
virtual void txArtTimeCode();
virtual void rxArtCommand();