This commit is contained in:
Morten Nielsen 2020-01-28 22:26:07 -08:00
commit dcfa839fa2
4 changed files with 14 additions and 7 deletions

View file

@ -8,7 +8,7 @@ To use the NMEA Parser against a bluetooth device in a Windows Store or Windows
</Device>
</DeviceCapability>
```
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.

View file

@ -1,3 +1,6 @@
# Creating a Bluetooth device in an iOS app
TODO...
Help needed!
Please see https://github.com/dotMorten/NmeaParser/issues/68

View file

@ -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
}

View file

@ -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
}