예제 #1
0
        public static IEnumerable <FrameVdS> CreateMeasurementMessageCurrent(double current)
        {
            Log.Debug("Create change message CURRENT with value {0}", current);

            yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73));

            //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x31, current);
            yield return(FrameVdS_54.Create(string.Format("Strom geaendert, neuer Wert: ({0}) A", current)));
        }
예제 #2
0
        public static IEnumerable <FrameVdS> CreateMeasurementMessagePower(double power)
        {
            Log.Debug("Create change message POWER with value {0}", power);

            yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73));

            //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x48, power);
            yield return(FrameVdS_54.Create(string.Format("Leistung geaendert, neuer Wert: ({0}) kW", power)));
        }
예제 #3
0
        public static IEnumerable <FrameVdS> CreateMeasurementMessageVoltage(double voltage)
        {
            Log.Debug("Create change message VOLTAGE with value {0}", voltage);

            yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73));

            //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x21, voltage);
            yield return(FrameVdS_54.Create(string.Format("Spannung geaendert, neuer Wert: ({0}) V", voltage)));
        }