private void GPS_PositionReceived(string Lat, string Lon) { if (OSGconv.ParseNMEA(Lat, Lon, 0)) { GpsPosition pos = new GpsPosition(Convert.ToString(OSGconv.deciLat), Convert.ToString(OSGconv.deciLon)); string strToSend = JsonConvert.SerializeObject(pos); Debug.WriteLine("GPS_PositionReceived => " + strToSend); if (myCommand != null) { myCommand.Para = strToSend; myCommand.IfBroadcast = "true"; } this.invokeCallback(myCommand); } }
private void GPS_PositionReceived(string Lat, string Lon) { if (OSGconv.ParseNMEA(Lat, Lon, 0)) { GpsPosition pos = new GpsPosition(Convert.ToString(OSGconv.deciLat), Convert.ToString(OSGconv.deciLon)); string strToSend = JsonConvert.SerializeObject(pos); Debug.WriteLine("GPS_PositionReceived => " + strToSend); if (myCommand != null) { myCommand.Para = strToSend; myCommand.IfBroadcast = "true"; } this.invokeCallback(myCommand); } }