Show / Hide Table of Contents

Method Parse

| Edit this page View Source

Parse(string, IMultiSentenceMessage?, bool)

Parses the specified NMEA message.

Declaration
public static NmeaMessage Parse(string message, IMultiSentenceMessage? previousSentence = null, bool ignoreChecksum = false)
Parameters
Type Name Description
string message

The NMEA message string.

IMultiSentenceMessage previousSentence

The previously received message (only used if parsing multi-sentence messages)

bool ignoreChecksum

If true ignores the checksum completely, if false validates the checksum if present.

Returns
Type Description
NmeaMessage

The nmea message that was parsed.

Exceptions
Type Condition
ArgumentException

Invalid nmea message: Missing starting character '$' or checksum failure

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0main, v3.0, v2.2, v2.1
.NETmain, v3.0
.NET Windowsmain, v3.0
.NET Androidmain, v3.0
.NET iOSmain, v3.0
.NET Frameworkmain, v3.0, v2.2, v2.1
UWPmain, v3.0, v2.2, v2.1
Xamarin.Androidv2.2, v2.1
Xamarin.iOSv2.2, v2.1
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX