Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions to set individual components of art_poll_reply_config #117

Merged
merged 1 commit into from
Jul 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions Artnet/Receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,27 @@ class Receiver_
#endif

// https://art-net.org.uk/how-it-works/discovery-packets/artpollreply/
void setArtPollReplyConfigOem(uint16_t oem) {
this->art_poll_reply_config.oem = oem;
}
void setArtPollReplyConfigEstaMan(uint16_t esta_man) {
this->art_poll_reply_config.esta_man = esta_man;
}
void setArtPollReplyConfigStatus1(uint8_t status1) {
this->art_poll_reply_config.status1 = status1;
}
void setArtPollReplyConfigStatus2(uint8_t status2) {
this->art_poll_reply_config.status2 = status2;
}
void setArtPollReplyConfigShortName(const String &short_name) {
this->art_poll_reply_config.short_name = short_name;
}
void setArtPollReplyConfigLongName(const String &long_name) {
this->art_poll_reply_config.long_name = long_name;
}
void setArtPollReplyConfigNodeReport(const String &node_report) {
this->art_poll_reply_config.node_report = node_report;
}
void setArtPollReplyConfig(
uint16_t oem,
uint16_t esta_man,
Expand All @@ -279,13 +300,13 @@ class Receiver_
const String &long_name,
const String &node_report
) {
this->art_poll_reply_config.oem = oem;
this->art_poll_reply_config.esta_man = esta_man;
this->art_poll_reply_config.status1 = status1;
this->art_poll_reply_config.status2 = status2;
this->art_poll_reply_config.short_name = short_name;
this->art_poll_reply_config.long_name = long_name;
this->art_poll_reply_config.node_report = node_report;
this->setArtPollReplyConfigOem(oem);
this->setArtPollReplyConfigEstaMan(esta_man);
this->setArtPollReplyConfigStatus1(status1);
this->setArtPollReplyConfigStatus2(status2);
this->setArtPollReplyConfigShortName(short_name);
this->setArtPollReplyConfigLongName(long_name);
this->setArtPollReplyConfigNodeReport(node_report);
}

void verbose(bool b)
Expand Down
Loading