Class NmeaData
- Namespace
- Iot.Device.Common.GnssDevice
- Assembly
- Iot.Device.Common.GnssDevice.dll
NMEA0183 Data abstract class.
public abstract class NmeaData
- Inheritance
-
NmeaData
- Derived
Constructors
NmeaData()
protected NmeaData()
Properties
MessageId
Gets the NMEA message ID.
public virtual string MessageId { get; }
Property Value
Methods
GetGnssMode(string)
Gets the GnssMode out of the message.
public GnssMode GetGnssMode(string inputData)
Parameters
inputData
stringA valid input.
Returns
GetSubFields(string)
Gets the sub fields without the *checksum.
public static string[] GetSubFields(string command)
Parameters
command
stringThe NMEA message to split.
Returns
- string[]
All the NMEA subfields data.
IsMatch(string)
Determines if the message ID is a match.
public bool IsMatch(string inputData)
Parameters
inputData
stringA valid input.
Returns
- bool
True if the message ID is a match.
Parse(string)
Parse for the specific data type.
public abstract NmeaData Parse(string inputData)
Parameters
inputData
stringThe input data string.
Returns
- NmeaData
An NmeaData.
ValidateChecksum(string)
Validate the checksum.
public bool ValidateChecksum(string inputData)
Parameters
inputData
stringA valid raw input.
Returns
- bool
True if the checksum is correct.