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. diff --git a/docs/concepts/ntrip.md b/docs/concepts/ntrip.md index 7a46901..e76f688 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. @@ -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() { @@ -208,4 +211,4 @@ client.DataReceived += (sender, ntripData) => { }; // Connect to the stream client.Connect(str.Mountpoint); -``` \ No newline at end of file +```