Example #1
0
        /// <summary>
        ///  LmSCreboot_class constructor
        /// </summary>
        public mSCreboot_class()
        {
            string        sTemp;
            ASCIIEncoding encoding = new ASCIIEncoding();

            _type      = CommandType.mSCreboot;
            _data      = new mSCreboot();
            _data.stx  = 0x02;
            sTemp      = "sMN ";
            _data.type = encoding.GetBytes(sTemp);
            sTemp      = "mSCreboot ";
            _data.cmd  = encoding.GetBytes(sTemp);
            _data.etx  = 0x03;
        }
Example #2
0
 /// <summary>
 ///  LmSCreboot_class constructor
 /// </summary> 
 public mSCreboot_class()
 {
     string sTemp;
     ASCIIEncoding encoding = new ASCIIEncoding();
     _type = CommandType.mSCreboot;
     _data = new mSCreboot();
     _data.stx = 0x02;
     sTemp = "sMN ";
     _data.type = encoding.GetBytes(sTemp);
     sTemp = "mSCreboot ";
     _data.cmd = encoding.GetBytes(sTemp);
     _data.etx = 0x03;
 }