1
0
Fork 0

begin filling out the ArtPollReply data

This commit is contained in:
Kevin Matz 2023-05-21 12:48:42 -04:00
parent 7b6946a1cc
commit 840f42d8dc
1 changed files with 23 additions and 3 deletions

View File

@ -392,9 +392,29 @@ void Device::rxArtTrigger(std::shared_ptr<ArtTrigger> packet)
*/
void Device::txArtPollReply()
{
auto data = std::make_shared<pollreply_data>();
/// \todo impliment txArtPollReply
auto packet = std::make_shared<ArtPollReply>(data);
auto reply = std::make_shared<pollreply_data>();
/// \todo complete data field population of ArtPollReply
// reply->net_sub_switch = ;
// reply->ubea_version = ;
// reply->status = ;
reply->short_name = _shortName;
reply->long_name = _longName;
// reply->report() = ;
// reply->num_ports = ;
// reply->port_types = ;
// reply->good_input = ;
// reply->good_output = ;
// reply->SwIn = ;
// reply->SwOut = ;
// reply->SwMacro = ;
// reply->SwRemote = ;
reply->style = styleCode;
const auto mac = deviceMac();
std::copy(mac.cbegin(), mac.cend(), reply->mac_address);
reply->bind_ip = deviceIp().address.ipv4.value;
// reply->bind_index = ;
auto packet = std::make_shared<ArtPollReply>(reply);
send(packet, broadcastIp());
}