Edit

Share via


TalkerSentence.FromSentenceString Method

Definition

Overloads

FromSentenceString(String, NmeaError)

Reads NMEA0183 talker sentence from provided string

FromSentenceString(String, TalkerId, NmeaError)

Reads NMEA0183 talker sentence from provided string

FromSentenceString(String, NmeaError)

Reads NMEA0183 talker sentence from provided string

public static Iot.Device.Nmea0183.TalkerSentence? FromSentenceString (string sentence, out Iot.Device.Nmea0183.NmeaError errorCode);
static member FromSentenceString : string * NmeaError -> Iot.Device.Nmea0183.TalkerSentence
Public Shared Function FromSentenceString (sentence As String, ByRef errorCode As NmeaError) As TalkerSentence

Parameters

sentence
String

NMEA0183 talker sentence

errorCode
NmeaError

Returns an error code, if the parsing failed

Returns

TalkerSentence instance, or null in case of an error

Remarks

sentence does not include new line characters

Applies to

FromSentenceString(String, TalkerId, NmeaError)

Reads NMEA0183 talker sentence from provided string

public static Iot.Device.Nmea0183.TalkerSentence? FromSentenceString (string sentence, Iot.Device.Nmea0183.TalkerId expectedTalkerId, out Iot.Device.Nmea0183.NmeaError errorCode);
static member FromSentenceString : string * Iot.Device.Nmea0183.TalkerId * NmeaError -> Iot.Device.Nmea0183.TalkerSentence
Public Shared Function FromSentenceString (sentence As String, expectedTalkerId As TalkerId, ByRef errorCode As NmeaError) As TalkerSentence

Parameters

sentence
String

NMEA0183 talker sentence

expectedTalkerId
TalkerId

If this is not TalkerId.Any, only messages with this talker id are parsed, all others are ignored. This reduces workload if a source acts as repeater, but the repeated messages are not needed.

errorCode
NmeaError

Returns an error code, if the parsing failed

Returns

TalkerSentence instance, or null in case of an error

Remarks

sentence does not include new line characters

Applies to