Package com.mattibal.meshnet.devices

Examples of com.mattibal.meshnet.devices.LedLamp1Device


        if(deviceType == LedTestDevice.DEVICE_TYPE){
          // TODO workaround for duplicated device type
          //device =  new LedTestDevice(uniqueDeviceId);
          device = new Led1Analog2Device(uniqueDeviceId);
        } else if(deviceType == LedLamp1Device.DEVICE_TYPE){
          device = new LedLamp1Device(uniqueDeviceId);
        } else {
          // Unknown device type
          device =  new Device(uniqueDeviceId, deviceType);
        }
      }
View Full Code Here


        System.out.println("Errore get device");
      }
     
      Device dev = Device.getDeviceFromUniqueId(484333);
      if(dev!=null && dev instanceof LedLamp1Device){
        LedLamp1Device lamp = (LedLamp1Device) dev;
       
        /*for(int i=0; i<6; i++){
          AbsoluteColor color1 = new AbsoluteColor(0, 0, 0);
          lamp.setColor(color1);
          Thread.sleep(1000);
View Full Code Here

TOP

Related Classes of com.mattibal.meshnet.devices.LedLamp1Device

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.