NmeaParser Class
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.
Parses Nmea Sequences
public class NmeaParser : Iot.Device.Nmea0183.NmeaSinkAndSource, IDisposable
type NmeaParser = class
inherit NmeaSinkAndSource
interface IDisposable
Public Class NmeaParser
Inherits NmeaSinkAndSource
Implements IDisposable
- Inheritance
- Implements
Constructors
NmeaParser(String, Stream, Stream) |
Creates a new instance of the NmeaParser, taking an input and an output stream |
Properties
ExclusiveTalkerId |
Set this to anything other than Any to receive only that specific ID from this parser |
InterfaceName |
Name of the interface (Inherited from NmeaSinkAndSource) |
LastPacketTime |
Time the last packet was received. This is writable to configure the initial value (defaults to current system time) |
SupportLogReading |
If true, the parser also accepts sentences in a log format (prefixed with a date and separated by |) |
SuppressOutdatedMessages |
True (the default) to suppress forwarding messages when a newer message with the same SentenceId and TalkerId is already in the outgoing queue. Only affects messages that have ReplacesOlderInstance set to true. Set to false to forward all messages. |
Methods
DispatchSentenceEvents(NmeaSentence) |
Forwards the given sentence to listeners, as needed. Use the current instance as source. (Inherited from NmeaSinkAndSource) |
DispatchSentenceEvents(NmeaSinkAndSource, NmeaSentence) |
Forwards the given sentence to listeners, as needed. (Inherited from NmeaSinkAndSource) |
Dispose() |
Standard dispose method (Inherited from NmeaSinkAndSource) |
Dispose(Boolean) |
Dispose this instance (Inherited from NmeaSinkAndSource) |
FireOnParserError(String, NmeaError) |
Fire an event informing about parser errors (Inherited from NmeaSinkAndSource) |
SendSentence(NmeaSentence) |
Send the given sentence to the interface. (Inherited from NmeaSinkAndSource) |
SendSentence(NmeaSinkAndSource, NmeaSentence) |
Send the message to the device. From the implementation side, this is where the input data comes in (e.g. from the message dispatcher) |
SendSentences(IEnumerable<NmeaSentence>) |
Sends a list of messages at once (Inherited from NmeaSinkAndSource) |
StartDecode() |
Start receiving messages from this interface. An implementation should open streams, connect to sockets or create receiver threads, as appropriate. |
StopDecode() |
Stops sending or receiving messages from and to this interface. Any pending messages are discarded. |
Events
OnNewPosition |
This is fired when a new position is available (Inherited from NmeaSinkAndSource) |
OnNewSequence |
This is fired on every new sentence (Inherited from NmeaSinkAndSource) |
OnNewTime |
This is fired when the time is updated (Inherited from NmeaSinkAndSource) |
OnParserError |
This is fired when a message couldn't be parsed (Inherited from NmeaSinkAndSource) |