NmeaLogDataReader 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.
This source can be used to play back a recorded log file. If DecodeInRealtime is false (the default), the file will be read as fast as possible. Otherwise messages will be generated at the speed of the original data.
public class NmeaLogDataReader : Iot.Device.Nmea0183.NmeaSinkAndSource
type NmeaLogDataReader = class
inherit NmeaSinkAndSource
Public Class NmeaLogDataReader
Inherits NmeaSinkAndSource
- Inheritance
Constructors
NmeaLogDataReader(String, IEnumerable<Stream>) |
Reads a log file and uses it as a source |
NmeaLogDataReader(String, IEnumerable<String>) |
Reads a log file and uses it as a source |
NmeaLogDataReader(String, Stream) |
Reads a log file and uses it as a source |
NmeaLogDataReader(String, String) |
Reads a log file and uses it as a source |
Properties
DecodeInRealtime |
Set to true to replay a message stream in real time. The reader will generate messages with the same time difference as they originally had. The timestamp of the messages will be updated to the present. |
InterfaceName |
Name of the interface (Inherited from NmeaSinkAndSource) |
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 |
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) |
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