Class NmeaDevice
A generic abstract NMEA device
Inheritance
Implements
Inherited Members
Namespace: NmeaParser
Assembly: NmeaParser.dll
Syntax
public abstract class NmeaDevice : IDisposable
Constructors
Name | Description |
---|---|
NmeaDevice() | Initializes a new instance of the NmeaDevice class. |
Properties
Name | Description |
---|---|
CanWrite | Gets a value indicating whether this device supports writing |
IsOpen | Gets a value indicating whether this device is open. |
Methods
Name | Description |
---|---|
CloseAsync() | Closes the device. |
CloseStreamAsync(Stream) | Closes the stream the NmeaDevice is working on top off. |
Dispose() | Releases unmanaged and - optionally - managed resources. |
Dispose(bool) | Releases unmanaged and - optionally - managed resources. |
OpenAsync() | Creates and opens the stream the NmeaDevice will be working on top off. |
OpenStreamAsync() | Creates and opens the stream the NmeaDevice is working on top off. |
ReadAsync(byte[], int, int, CancellationToken) | Performs a read operation of the stream |
WriteAsync(byte[], int, int) | Writes to the device stream. Useful for transmitting RTCM corrections to the device Check the CanWrite property before calling this method. |
Events
Name | Description |
---|---|
DeviceDisconnected | Raised when a device raises the same error multiple times and can't recover. |
MessageReceived | Occurs when an NMEA message is received. |
Applies
Target | Versions |
---|---|
.NET Standard 2.0 | GitHub, v3.0, v2.2, v2.1, v2.0 |
.NET | GitHub, v3.0 |
.NET Windows | GitHub, v3.0 |
.NET Android | GitHub, v3.0 |
.NET iOS | GitHub, v3.0 |
.NET Framework | GitHub, v3.0, v2.2, v2.1, v2.0 |
UWP | GitHub, v3.0, v2.2, v2.1, v2.0 |
Xamarin.Android | v2.2, v2.1, v2.0 |
Xamarin.iOS | v2.2, v2.1, v2.0 |