Esempio n. 1
0
        public Parser()
        {
            _hdlcMessage = new HDLCMessage();
            _obisCode    = new List <IOBISCode>();

            var obisCode = new OBISCode()
            {
                ObisCode     = "1-0:1.7.0.255",
                ObjectCode   = "0100010700FF",
                Unit         = "kW",
                Scaler       = -3,
                Name         = "Active power",
                Size         = 4,
                DataTypeName = "decimal"
            };

            _obisCode.Add(obisCode);

            obisCode = new OBISCode()
            {
                ObisCode     = "0-0:96.1.7.255",
                ObjectCode   = "0000600107FF",
                Unit         = "",
                Scaler       = 0,
                Name         = "Meter-Type",
                Size         = -1,
                DataTypeName = "string"
            };

            _obisCode.Add(obisCode);
        }
Esempio n. 2
0
 public Parser(IHDLCMessage message)
 {
     _hdlcMessage = message;
 }