Characteristic | Locus |
---|---|
Inheritance | System.Object > NMEA |
Inherited Members | System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone() |
Namespace | Meadow.Foundation.Sensors.GPS |
Assembly | NMEA.dll |
Syntax
public class NMEA
Constructors
View SourceNMEA(IIODevice, SerialPortName, Int32, Parity, Int32, StopBits)
Create a new NMEA GPS object and attach to the specified serial port.
Declaration
public NMEA(IIODevice device, SerialPortName port, int baudRate, Parity parity, int dataBits, StopBits stopBits)
Parameters
Type | Name | Description |
---|---|---|
IIODevice | device | |
SerialPortName | port | Serial port attached to the GPS. |
System.Int32 | baudRate | Baud rate. |
Parity | parity | Parity. |
System.Int32 | dataBits | Number of data bits. |
StopBits | stopBits | Number of stop bits. |
Methods
View SourceAddDecoder(NMEADecoder)
Add a new NMEA decoder to the GPS.
Declaration
public void AddDecoder(NMEADecoder decoder)
Parameters
Type | Name | Description |
---|---|---|
NMEADecoder | decoder | NMEA decoder. |
Close()
Close the connection to the GPS and stop processing data.
Declaration
public void Close()
Open()
Open the connection to the GPS and start processing data.
Declaration
public void Open()