From 8e72ae022b6ec9b3c836ab790e07608ecd7cdfce Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Sat, 25 Jan 2020 14:25:10 -0800 Subject: [PATCH] Improve getting started sample --- docs/concepts/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/concepts/index.md b/docs/concepts/index.md index 5fdcbb8..1107ebf 100644 --- a/docs/concepts/index.md +++ b/docs/concepts/index.md @@ -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) { // 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. -### 3. [Browse the API Reference](api/index.html) \ No newline at end of file +### 3. [Browse the API Reference](api/index.html)