public void SetValue(byte[] data)
 {
     if (Type == typeof(string))
     {
         Value = MessageParsing.CanDataParseString(data, Factor, OffSet, Start, Length);
     }
     if (Type == typeof(double))
     {
         Value = MessageParsing.CanDataParseDouble(data, Factor, OffSet, Start, Length);
     }
 }
예제 #2
0
 public EngineService()
 {
     util           = new Util();
     messageParsing = new MessageParsing();
     context        = new DBContext();
 }