Package ola.proto.Ola

Examples of ola.proto.Ola.DeviceInfoReply


        System.out.println(reply);
    }

    @Test
    public void testGetDeviceInfo() {
        DeviceInfoReply reply = client.getDeviceInfo();
        assertNotNull(reply);
        System.out.println(reply);
    }
View Full Code Here


        System.out.println(reply);
    }

    @Test
    public void testGetCandidatePorts() {
        DeviceInfoReply reply = client.getCandidatePorts(0);
        assertNotNull(reply);
        System.out.println(reply);
    }
View Full Code Here

    String autoBind = System.getProperty("net.opendmx.ola.autobind");
    if (autoBind == null || !autoBind.equalsIgnoreCase("false")) {
      // bind default universe to all devices
      logger.info("Starting autobind for universe 0. To disable autobind use -Dnet.opendmx.ola.autobind=false");
      DeviceInfoReply devInfoReply = client.getDeviceInfo();
      if (devInfoReply == null) {
        logger.error("Could not retrieve device list. Binding to OLA aborted.");
        return;
      }
      List<DeviceInfo> devList = devInfoReply.getDeviceList();
      for (DeviceInfo devInfo : devList) {
        if (client.patchPort(devInfo.getDeviceAlias(), 0,
            PatchAction.PATCH, 0)) {
          logger.info("Linked universe 0 to device "
              + devInfo.getDeviceName());
View Full Code Here

TOP

Related Classes of ola.proto.Ola.DeviceInfoReply

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.