//cloen a GPSData
        public GPSData GPSDataClone(GPSData data)
        {
            GPSData temp = new GPSData();

            temp.id                = data.id;
            temp.nMsRSSI           = data.nMsRSSI;
            temp.nULRSSI           = data.nULRSSI;
            temp.nBattery          = data.nBattery;
            temp.nReasonForSending = data.nReasonForSending;
            temp.time              = data.time;
            return(temp);
        }
        //convert to type of GPSData from TBody
        public GPSData ToGPSData(TBody body)
        {
            GPSData data = new GPSData();

            data.id                = GetIssi(body);
            data.nMsRSSI           = body.nMsRSSI;
            data.nULRSSI           = body.nULRSSI;
            data.nBattery          = body.nBattery;
            data.nReasonForSending = body.nReasonForSending;
            //data.time = Convert.ToString(body.time);
            //try
            //{
            //    data.time = DateTime.FromOADate(body.time).ToString("yyyy-MM-dd HH:mm:ss.fff");
            //}
            //catch (Exception e)
            //{
            data.time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff");
            //}


            return(data);
        }
 //get issi from GPSData object
 public string GetIssi(GPSData data)
 {
     return(data.id);
 }