Exemplo n.º 1
0
        public void DecodeKnxData1()
        {
            var       input    = StrToByteArray("41b00000");
            IPlcValue expected = new PlcREAL(22.0f);

            var actual = KnxDatapoint.StaticParse(new ReadBuffer(input), KnxDatapointType.DPT_Value_Electric_Current);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void DecodeKnxData1()
        {
            var       formatName = "F32";
            var       input      = StrToByteArray("0041b00000");
            IPlcValue expected   = new PlcREAL(22.0f);

            var actual = new KnxDatapoint().Parse(new ReadBuffer(input), formatName);

            Assert.Equal(expected, actual);
        }