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

Random initialization of node unsuccessful #2

Open
mixman68 opened this issue Feb 20, 2014 · 2 comments
Open

Random initialization of node unsuccessful #2

mixman68 opened this issue Feb 20, 2014 · 2 comments

Comments

@mixman68
Copy link

Hello,

I have a little problem with the libartnet on a iPad,

Sometimes, the library cannot initialize the node but it's random, sometimes it's ok, sometimes it's not ok.

            artnet_node artnetNode = artnet_new(ip_addr, 0);

            if (!artnetNode) {
                printf("Error: %s\n", artnet_strerror());
                throw new SenderException(artnet_strerror());
            }

            artnet_set_long_name(artnetNode, "Art-Net AirDMX");
            artnet_set_short_name(artnetNode, "AirDMX");

            // set the upper 4 bits of the universe address
            artnet_set_subnet_addr(artnetNode, subnet_addr);

            // enable port 0
            artnet_set_port_type(artnetNode, 0, ARTNET_ENABLE_OUTPUT, ARTNET_PORT_DMX);

            // bind port 0 to universe 1
            artnet_set_port_addr(artnetNode, 0, ARTNET_OUTPUT_PORT, port_addr);

            artnet_dump_config(artnetNode);

            //artnet_set_handler(artnetNode, ARTNET_RECV_HANDLER, artnetReceiver, NULL);

            if (artnet_start(artnetNode) != 0) {
                printf("Error: %s\n", artnet_strerror());
                throw new SenderException(artnet_strerror());
            }

Thanks

@nomis52
Copy link
Member

nomis52 commented Feb 20, 2014

What errors do you see?

@Cclleemm
Copy link

Hello,
I Have dames problems than djgreg13 ...
The sender didn't want to work on Mavericks and it's completely random for iOS7.
I have no idea why it can't find Interfaces.
If you have some indications, I will be happy.
Thank's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants