Пример #1
0
        private string SendCommand(string IpAddress, int port, string Data)
        {
            string Result = "";

            try
            {
                //Data = "51AC032803";
                //Data = Common.TrackingCRCCalculate(Data);
                //Data = Common.GetTrackingCommand(Data);
                string Err      = "";
                string ReadData = "";
                for (int i = 0; i < 3; i++)
                {
                    UDP.ATC_Tracking(IpAddress, port, Data, ref ReadData, ref Err);
                }
            }
            catch (Exception ex)
            {
                Result = ex.Message;
            }
            return(Result);
        }