Remarks

To use, call RegisterDecoder for each NMEA sentence decoder that you want to use, passing an INmeaDecoder, and then call ParseNmeaMessage, and pass the NMEA sentence string, e.g. "$GPRMC,000049.799,V,,,,,0.00,0.00,060180,,,N*48".

Each INmeaDecoder decoder has its own event(s) that can then be subscribed to, in order to get the resulting information. If you'd like to add additional decoders, an excellent reference on NMEA sentences can found here.

Characteristic Locus
Inheritance System.Object > NmeaSentenceProcessor
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors.Location.Gnss.NmeaParsing
Assembly NMEA.dll

Syntax

public class NmeaSentenceProcessor

Constructors

NmeaSentenceProcessor()

Creates a new instance of the NmeaSentenceProcessor.

Declaration
public NmeaSentenceProcessor()

Properties

DebugMode

Declaration
public bool DebugMode { get; set; }

Property Value

Type Description
System.Boolean

Methods

ProcessNmeaMessage(String)

GPS message ready for processing.

Declaration
public void ProcessNmeaMessage(string line)

Parameters

Type Name Description
System.String line

GPS text for processing.

Remarks

Unknown message types will be discarded.

RegisterDecoder(INmeaDecoder)

Add a new NMEA decoder to the GPS.

Declaration
public void RegisterDecoder(INmeaDecoder decoder)

Parameters

Type Name Description
INmeaDecoder decoder

NMEA decoder.