From ddc1bdd32fc15e6ad684b0764d77a9d91cee97f6 Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:15:51 -0800 Subject: [PATCH 1/4] Update SerialPortNetCore.md --- docs/concepts/SerialPortNetCore.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/concepts/SerialPortNetCore.md b/docs/concepts/SerialPortNetCore.md index b1c0e0c..05e7b72 100644 --- a/docs/concepts/SerialPortNetCore.md +++ b/docs/concepts/SerialPortNetCore.md @@ -1,12 +1,14 @@ # Creating a Serial Port device in a .NET Core app ```csharp -var port = new System.IO.Ports.SerialPort("COM3", 9600); //change name and baud rage to match your serial port +string portname = "COM3"; // Change to match the name of the port your device is connected to +int baudrate = 9600; // Change to the baud rate your device communicates at (usually specified in the manual) +var port = new System.IO.Ports.SerialPort(portname, baudrate); var device = new NmeaParser.SerialPortDevice(port); -device.MessageReceived += device_NmeaMessageReceived; +device.MessageReceived += OnNmeaMessageReceived; device.OpenAsync(); ... -private void device_NmeaMessageReceived(NmeaParser.NmeaDevice sender, NmeaParser.NmeaMessageReceivedEventArgs args) +private void OnNmeaMessageReceived(NmeaParser.NmeaDevice sender, NmeaParser.NmeaMessageReceivedEventArgs args) { // called when a message is received } From b2ac8e7d714cb9dc5c78dc362a96cb9239f47383 Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:16:08 -0800 Subject: [PATCH 2/4] Update SerialPortNetFX.md --- docs/concepts/SerialPortNetFX.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/concepts/SerialPortNetFX.md b/docs/concepts/SerialPortNetFX.md index ca0e769..f71c493 100644 --- a/docs/concepts/SerialPortNetFX.md +++ b/docs/concepts/SerialPortNetFX.md @@ -1,12 +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 +string portname = "COM3"; // Change to match the name of the port your device is connected to +int baudrate = 9600; // Change to the baud rate your device communicates at (usually specified in the manual) +var port = new System.IO.Ports.SerialPort(portname, baudrate); var device = new NmeaParser.SerialPortDevice(port); -device.MessageReceived += device_NmeaMessageReceived; +device.MessageReceived += OnNmeaMessageReceived; device.OpenAsync(); ... -private void device_NmeaMessageReceived(NmeaParser.NmeaDevice sender, NmeaParser.NmeaMessageReceivedEventArgs args) +private void OnNmeaMessageReceived(NmeaParser.NmeaDevice sender, NmeaParser.NmeaMessageReceivedEventArgs args) { // called when a message is received } From 89e4a4ceb2af29d1dfd0d3e957638fd3723afdff Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:18:15 -0800 Subject: [PATCH 3/4] Update BluetoothUWP.md --- docs/concepts/BluetoothUWP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/BluetoothUWP.md b/docs/concepts/BluetoothUWP.md index 1eb661a..9186f07 100644 --- a/docs/concepts/BluetoothUWP.md +++ b/docs/concepts/BluetoothUWP.md @@ -8,7 +8,7 @@ To use the NMEA Parser against a bluetooth device in a Windows Store or Windows ``` -See more here on bluetooth device capabilities in WinStore: http://msdn.microsoft.com/en-us/library/windows/apps/dn263090.aspx +See more here on bluetooth device capabilities in UWP Apps: https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/how-to-specify-device-capabilities-for-bluetooth Make sure your Bluetooth device is paired with your Windows Device. From 7a707be0fecabae7f06dcb5bc19e0d654f857c1a Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 21:49:17 -0800 Subject: [PATCH 4/4] Update BluetoothiOS.md --- docs/concepts/BluetoothiOS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/concepts/BluetoothiOS.md b/docs/concepts/BluetoothiOS.md index 5edcffd..3dc7ebb 100644 --- a/docs/concepts/BluetoothiOS.md +++ b/docs/concepts/BluetoothiOS.md @@ -1,3 +1,6 @@ # Creating a Bluetooth device in an iOS app TODO... + +Help needed! +Please see https://github.com/dotMorten/NmeaParser/issues/68