Returns the last NMEA sentence received from the GPS. Either the complete NMEA sentence or a particular data field can be requested.
Read-only property
variable = object.Sentence ( [FieldIndex] ) |
- nField
String
FieldIndex is an optional argument that specifies the index of the data field to return. The default value is 0, which returns the entire NMEA sentence. For example, if the incoming NMEA string was $GPGGA,235213.998,3403.4660,N,11711.7838,W,0,00,50.0,365.9,M,,,,0000*2F, then GPS.Sentence(2) would return 235213.998 (the value of the second data field).