Edit

Share via


TalkerSentence.TryGetTypedValue(DateTimeOffset) Method

Definition

Compares sentence identifier with all known identifiers. If found returns typed object corresponding to the identifier. If not found returns a raw sentence instead. Also returns a raw sentence on a parser error (e.g. invalid date/time field)

public Iot.Device.Nmea0183.Sentences.NmeaSentence? TryGetTypedValue (ref DateTimeOffset lastMessageTime);
member this.TryGetTypedValue : DateTimeOffset -> Iot.Device.Nmea0183.Sentences.NmeaSentence
Public Function TryGetTypedValue (ByRef lastMessageTime As DateTimeOffset) As NmeaSentence

Parameters

lastMessageTime
DateTimeOffset

The date/time the last packet was seen. Used to time-tag packets that do not provide their own time or only a time but not a date

Returns

Object corresponding to the identifier

Applies to