mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-06 15:04:34 +00:00
Added DocFX documentation
This commit is contained in:
parent
9a32f41edf
commit
3571fdec12
25 changed files with 563 additions and 0 deletions
14
docs/concepts/SerialPortNetFX.md
Normal file
14
docs/concepts/SerialPortNetFX.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Creating a Serial Port device in a .NET Framework
|
||||
|
||||
```csharp
|
||||
var port = new System.IO.Ports.SerialPort("COM3", 9600); //change name and baud rage to match your serial port
|
||||
var device = new NmeaParser.SerialPortDevice(port);
|
||||
device.MessageReceived += device_NmeaMessageReceived;
|
||||
device.OpenAsync();
|
||||
...
|
||||
private void device_NmeaMessageReceived(NmeaParser.NmeaDevice sender, NmeaParser.NmeaMessageReceivedEventArgs args)
|
||||
{
|
||||
// called when a message is received
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue