mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2025-12-06 07:12:04 +01:00
35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
Nmea Parser
|
|
=========
|
|
|
|
Library for handling data NMEA streams coming in from Bluetooth devices in Windows Store and Windows Phone, and Serial ports in Windows Desktop apps.
|
|
|
|
There's also generic support for NMEA files (for simulation/playback) and raw streams.
|
|
|
|
This library makes it easy to connect and listen for NMEA messages from various Devices in Windows Store, Windows Phone and Windows Desktop apps.
|
|
|
|
Currently supported nmea messages:
|
|
- Generic GPS NMEA (GPRMC and GPGGA)
|
|
- Trimble Laser Range Finder
|
|
- TruePulse Laser Range Finder
|
|
|
|
The API is easily extensible with more NMEA message. Simply create a new class inheriting from "NmeaMessage" and use the NmeaMessageType Attribute to tag it with the NMEA Message Token it supports.
|
|
|
|
Example:
|
|
```
|
|
[NmeaMessageType(Type = "GPRMC")]
|
|
public class Gprmc : NmeaMessage
|
|
{
|
|
protected override void LoadMessage(string[] message)
|
|
{
|
|
//TODO: Process message parts
|
|
}
|
|
}
|
|
```
|
|
|
|
If you add new messages, please fork, provide a simple unit test for the message and submit a pull request.
|
|
|
|
Usage
|
|
=====================
|
|
|
|
Please see the [WIKI](http://www.github.com/dotMorten/NmeaParser/wiki) how to use it on the various platforms
|