TalkerSentence.FromSentenceString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for