mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-03-22 21:14:48 +01:00
Improve getting started sample
This commit is contained in:
parent
282331856e
commit
8e72ae022b
|
|
@ -23,8 +23,12 @@ You can get the library via [NuGet](http://www.nuget.org) if you have the extens
|
||||||
private void device_NmeaMessageReceived(NmeaDevice sender, NmeaMessageReceivedEventArgs args)
|
private void device_NmeaMessageReceived(NmeaDevice sender, NmeaMessageReceivedEventArgs args)
|
||||||
{
|
{
|
||||||
// called when a message is received
|
// called when a message is received
|
||||||
|
if(args.Message is NmeaParser.Messages.Rmc rmc)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Your current location is: {rmc.Latitude} , {rmc.Longitude}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
See the Platform specific device creation section in the menu for more specifics on device creation.
|
See the Platform specific device creation section in the menu for more specifics on device creation.
|
||||||
|
|
||||||
### 3. [Browse the API Reference](api/index.html)
|
### 3. [Browse the API Reference](api/index.html)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue