Skip to content

Random initialization of node unsuccessful #2

Open

Description

@mixman68

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

Activity

  1. nomis52 commented on Feb 20, 2014

    @nomis52
    Member

    What errors do you see?

  2. Cclleemm commented on Mar 22, 2014

    @Cclleemm

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions