Example #1
0
 public SCdevicestate_class()
 {
     string sTemp;
     ASCIIEncoding encoding = new ASCIIEncoding();
     _type = CommandType.SCdevicestate;
     _data = new SCdevicestate();
     _data.stx = 0x02;
     sTemp = "sRN ";
     _data.type = encoding.GetBytes(sTemp);
     sTemp = "SCdevicestate";
     _data.cmd = encoding.GetBytes(sTemp);
     _data.etx = 0x03;
 }
Example #2
0
        public SCdevicestate_class()
        {
            string        sTemp;
            ASCIIEncoding encoding = new ASCIIEncoding();

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