示例#1
0
 public AGVSession_OMARK(int agvid, AGVComPara ComPara) : base()
 {
     try
     {
         this.DeviceID   = agvid;
         this.DeviceType = 0;
         this.DeviceName = "AGV小车";
         this.ComPara    = ComPara;
         communicationobserve_timer.Elapsed += new System.Timers.ElapsedEventHandler(CommunicationObser);
         connect    = ConnectSocket;
         SocketSend = SendData;
     }
     catch (Exception ex)
     {
         LogHelper.WriteErrorLog(ex);
     }
 }
示例#2
0
 public AGVSession_OMARK()
 {
     communicationobserve_timer.Elapsed += new System.Timers.ElapsedEventHandler(CommunicationObser);
     connect    = ConnectSocket;
     SocketSend = SendData;
 }