Example #1
0
        public List <byte> ToByteList()
        {
            List <byte> byteList = new List <byte>();

            CRCCheck = new CRCCheck(funNumRequestDataBase.ToByteList().ToArray());

            byteList.AddRange(funNumRequestDataBase.ToByteList());
            byteList.AddRange(CRCCheck.ToByteList());

            return(byteList);
        }
Example #2
0
 public FunNumRequestDataRTU(IFunNumRequestDataBase funNumRequestDataBase)
 {
     this.funNumRequestDataBase = funNumRequestDataBase;
     CRCCheck = new CRCCheck(funNumRequestDataBase.ToByteList().ToArray());
 }