From cb217f9fde5821e16dc41dcddcd4f4b236cf5ab7 Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 22:27:32 -0800 Subject: [PATCH 1/3] Update ntrip.md --- docs/concepts/ntrip.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/ntrip.md b/docs/concepts/ntrip.md index 7a46901..a4c2fa1 100644 --- a/docs/concepts/ntrip.md +++ b/docs/concepts/ntrip.md @@ -1,4 +1,4 @@ -#Using NTRIP for DGPS +# Using NTRIP for DGPS You can use data from a nearby NTRIP server to improve the accuracy if your GPS position, if your device supports it. The Serial and Bluetooth devices supports writing to them, so you merely need to stream the data from the NTRIP server directly to your device. @@ -208,4 +208,4 @@ client.DataReceived += (sender, ntripData) => { }; // Connect to the stream client.Connect(str.Mountpoint); -``` \ No newline at end of file +``` From 768f39df699ebf3db63665edc54646be2e0c3812 Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 22:31:25 -0800 Subject: [PATCH 2/3] Update Features.md --- docs/Features.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Features.md b/docs/Features.md index f749c80..3cc48a0 100644 --- a/docs/Features.md +++ b/docs/Features.md @@ -12,4 +12,5 @@ - Emulation from NMEA log file (all platforms) - Serial Device: .NET Framework, .NET Core (Windows, Linux, Mac) and Windows Universal. - Bluetooth: Windows Universal and Android. .NET Core/.NET Framework is supported using the Bluetooth device via the SerialPortDevice. +- Devices support two-way communication, allowing you to enhance accuracy with [NTRIP](concepts/ntrip.md) or send other messages to your device. From a42b47fc6300802fb7833f09de38a2f341bf8c9f Mon Sep 17 00:00:00 2001 From: Morten Nielsen <1378165+dotMorten@users.noreply.github.com> Date: Tue, 28 Jan 2020 22:42:32 -0800 Subject: [PATCH 3/3] Update ntrip.md --- docs/concepts/ntrip.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/concepts/ntrip.md b/docs/concepts/ntrip.md index a4c2fa1..e76f688 100644 --- a/docs/concepts/ntrip.md +++ b/docs/concepts/ntrip.md @@ -60,11 +60,14 @@ namespace Ntrip private readonly int _port; private string _auth; private Socket sckt; - public Client(string host, int port, string authKey = null) + public Client(string host, int port) { _host = host; _port = port; - _auth = authKey; + } + public Client(string host, int port, string username, string password) : this(host, port) + { + _auth = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password)); } public IEnumerable GetSourceTable() {