Skip to content

Random initialization of node unsuccessful #2

@mixman68

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

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