Examples of DPT


Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingSceneNumber_18_001() throws KNXFormatException {
    DPT dpt =DPTXlatorSceneControl.DPT_SCENE_CONTROL;

    testToTypeClass(dpt, DecimalType.class);

    // Use a too short byte array
    assertNull("KNXCoreTypeMapper.toType() should return null (required data length too short)",
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDateTime_19_001() throws KNXFormatException {
    DPT dpt =DPTXlatorDateTime.DPT_DATE_TIME;

    testToTypeClass(dpt, DateTimeType.class);

    TimeZone defaultTimeZone = TimeZone.getDefault();

View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingDateTime_19_001_DST() throws KNXFormatException {
    DPT dpt =DPTXlatorDateTime.DPT_DATE_TIME;

    //2014-07-31 00:00:00 DST flag set
    byte[] testDataDST   = new byte[] { 0x72, 0x07, 0x1F, 0x00, 0x00, 0x00, (byte) 0x05, (byte) 0x00 };
    //2014-07-31 00:00:00 DST flag cleared
    byte[] testDataNoDST = new byte[] { 0x72, 0x07, 0x1F, 0x00, 0x00, 0x00, (byte) 0x04, (byte) 0x00 };
View Full Code Here

Examples of tuwien.auto.calimero.dptxlator.DPT

   *
   * @throws KNXFormatException
   */
  @Test
  public void testTypeMappingColourRGB_232_600() throws KNXFormatException {
    DPT dpt =DPTXlatorRGB.DPT_RGB;

    testToTypeClass(dpt, HSBType.class);

    // Use a too short byte array
    assertNull("KNXCoreTypeMapper.toType() should return null (required data length too short)",
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.