mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-21 06:13:58 +00:00
Doc comments
This commit is contained in:
parent
8e6cc7b00b
commit
5f660c3343
6 changed files with 184 additions and 3 deletions
|
|
@ -40,11 +40,19 @@ namespace NmeaParser
|
|||
private BTDevice m_device;
|
||||
private StreamSocket m_socket;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BluetoothDevice"/> class.
|
||||
/// </summary>
|
||||
/// <param name="device">The device.</param>
|
||||
public BluetoothDevice(BTDevice device)
|
||||
{
|
||||
m_device = device;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the stream the NmeaDevice is working on top off.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected override async Task<System.IO.Stream> OpenStreamAsync()
|
||||
{
|
||||
var socket = new Windows.Networking.Sockets.StreamSocket();
|
||||
|
|
@ -59,6 +67,11 @@ namespace NmeaParser
|
|||
return socket.InputStream.AsStreamForRead();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes the stream the NmeaDevice is working on top off.
|
||||
/// </summary>
|
||||
/// <param name="stream">The stream.</param>
|
||||
/// <returns></returns>
|
||||
protected override Task CloseStreamAsync(System.IO.Stream stream)
|
||||
{
|
||||
stream.Dispose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue