diff --git a/protocol/artistic/artnet/device.cpp b/protocol/artistic/artnet/device.cpp index 57922fa..20853b6 100644 --- a/protocol/artistic/artnet/device.cpp +++ b/protocol/artistic/artnet/device.cpp @@ -511,6 +511,19 @@ ipAddress Device::broadcastIp() const } +/** + * @brief Device::deviceHasDHCP + * @return + * + * The default implimentation is to return false, as the default invalid IP is static. + * \note Platform aware device types must return their DHCP status. + */ +bool Device::deviceHasDHCP() const +{ + return false; +} + + /** * @brief Device::shortName * @return diff --git a/protocol/artistic/artnet/device.h b/protocol/artistic/artnet/device.h index 62bf212..febeb31 100644 --- a/protocol/artistic/artnet/device.h +++ b/protocol/artistic/artnet/device.h @@ -87,9 +87,12 @@ protected: virtual void txArtPollReply(std::shared_ptr = nullptr); virtual void txArtDiagData(); + // OSI layer 2 virtual std::array deviceMac() const; + // OSI layer 3 virtual ipAddress deviceIp() const; virtual ipAddress broadcastIp() const; + virtual bool deviceHasDHCP() const; private: std::weak_ptr, ipAddress)>> _sender;