-
Notifications
You must be signed in to change notification settings - Fork 56
Added function to allow for unicasting to specific IP address #23
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
base: master
Are you sure you want to change the base?
Conversation
…rather than broadcasting.
…rather than broadcasting.
…rather than broadcasting.
…mpile libartnet. Must be followed with "make install" to install system-wide
@@ -1,5 +1,5 @@ | |||
|
|||
AM_CFLAGS = -I$(top_builddir) -I$(top_srcdir) -Wall -Werror -Wformat -W |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems unrelated. Is there a reason it was removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created https://github.com/OpenLightingProject/libartnet/pull/25/files which should remove the need for this change.
@@ -163,7 +163,7 @@ int artnet_tx_tod_data(node n, int id) { | |||
bloc = 0; | |||
|
|||
while (remaining > 0) { | |||
memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT); | |||
memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT * ARTNET_RDM_UID_WIDTH); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good fix!
Added function to artnet.c/.h that allows for sending artnet messages to a specific IP address. This function otherwise replicates
artnet_send_dmx
, while stripping out unnecessary conditionals. The target IP address is provided as a uint32_t as the last argument to the new function. This value can be derived by using theinet_addr()
function, as used elsewhere in libartnet and documented here.