Table of Contents

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

string

Methods

GetGnssMode(string)

Gets the GnssMode out of the message.

public GnssMode GetGnssMode(string inputData)

Parameters

inputData string

A valid input.

Returns

GnssMode

The GnssMode.

GetSubFields(string)

Gets the sub fields without the *checksum.

public static string[] GetSubFields(string command)

Parameters

command string

The 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 string

A 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 string

The input data string.

Returns

NmeaData

An NmeaData.

ValidateChecksum(string)

Validate the checksum.

public bool ValidateChecksum(string inputData)

Parameters

inputData string

A valid raw input.

Returns

bool

True if the checksum is correct.