Examples of DPTXlator3BitControlled


Examples of tuwien.auto.calimero.dptxlator.DPTXlator3BitControlled

      case 2:
        DPTXlator1BitControlled translator1BitControlled =  (DPTXlator1BitControlled) translator;
        int decValue= (translator1BitControlled.getControlBit() ? 2:0) + (translator1BitControlled.getValueBit() ? 1:0) ;
        return new DecimalType (decValue);
      case 3:
        DPTXlator3BitControlled translator3BitControlled = (DPTXlator3BitControlled) translator;
        if (translator3BitControlled.getStepCode()==0) {
          // Not supported: break
          logger.debug("toType: KNX DPT_Control_Dimming: break ignored.");
          return null;
        }
        switch (subNumber) {
        case 7:
          return translator3BitControlled.getControlBit() ? IncreaseDecreaseType.INCREASE:IncreaseDecreaseType.DECREASE;
        case 8:
          return translator3BitControlled.getControlBit() ? UpDownType.DOWN:UpDownType.UP;
        }
      case 14:
        /*
         * FIXME: Workaround for a bug in Calimero / Openhab DPTXlator4ByteFloat.makeString(): is using a locale when
         * translating a Float to String. It could happen the a ',' is used as separator, such as 3,14159E20.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.