It looks first to see if a Serial Port is open. If it is, it reads in the data from the port.
Then, it splits the data and looks for the GPGGA data. It then grabs the Lat/Lon data and displays it.
Seriously, you listed your country as US, so with that assumption, you can read english.
Without any coding knowledge, you should be able to figure this out.
sneha111 wrote:
if (serialPort1.IsOpen)
sneha111 wrote:
data = serialPort1.ReadExisting()
sneha111 wrote:
data.Split('$')
sneha111 wrote:
if (lineArr[0] == "GPGGA")
sneha111 wrote:
//Latitude
sneha111 wrote:
//Longitude
sneha111 wrote:
//Display
txtLat.Text = Latitude;
txtLong.Text = Longitude;