Пример #1
0
 public DeviceIdent_class()
 {
     string sTemp;
     ASCIIEncoding encoding = new ASCIIEncoding();
     _type = CommandType.DeviceIdent;
     _data = new DeviceIdent();
     _data.stx = 0x02;
     sTemp = "sRI0 ";
     _data.type = encoding.GetBytes(sTemp);
     _data.etx = 0x03;
 }
Пример #2
0
        public DeviceIdent_class()
        {
            string        sTemp;
            ASCIIEncoding encoding = new ASCIIEncoding();

            _type      = CommandType.DeviceIdent;
            _data      = new DeviceIdent();
            _data.stx  = 0x02;
            sTemp      = "sRI0 ";
            _data.type = encoding.GetBytes(sTemp);
            _data.etx  = 0x03;
        }