diff --git a/Build/NuSpecs/Device.Net.LibUsb.nuspec b/Build/NuSpecs/Device.Net.LibUsb.nuspec index 2461dac3..d27ce54a 100644 --- a/Build/NuSpecs/Device.Net.LibUsb.nuspec +++ b/Build/NuSpecs/Device.Net.LibUsb.nuspec @@ -6,10 +6,10 @@ Codestin Search App macOS and Linux .NET library for talking to USB devices. Backed by the Device.Net framework macOS and Linux .NET library for talking to USB devices. Backed by the Device.Net framework - 4.2.1 + 4.3.0-beta Christian Findlay https://github.com/MelbourneDeveloper/Device.Net - + Muiltple stability fixes Copyright (c) 2021 Christian Findlay Hid USB Android UWP Windows C# MacOS Linux @@ -19,13 +19,13 @@ MIT - - + + - - + + diff --git a/Build/NuSpecs/Device.Net.nuspec b/Build/NuSpecs/Device.Net.nuspec index 650fbcac..f6bf2a06 100644 --- a/Build/NuSpecs/Device.Net.nuspec +++ b/Build/NuSpecs/Device.Net.nuspec @@ -4,14 +4,12 @@ Device.Net Codestin Search App - Cross-platform .NET framework for talking to connected devices in a uniform way through dependency injection. - -Alpha version. Please use 3.x for a stable release - Cross-platform .NET framework for talking to connected devices in a uniform way through dependency injection. - 4.2.1 + Cross-platform .NET framework for talking to connected devices in a uniform way through dependency injection + Cross-platform .NET framework for talking to connected devices in a uniform way through dependency injection + 4.3.0-beta Christian Findlay https://github.com/MelbourneDeveloper/Device.Net - Fixes cancellation tokens on Hid devices. Enables control transfer on Android device hosts. I.e. you can update firmware from your phone + Muiltple stability fixes Copyright (c) 2021 Christian Findlay Hid USB Android UWP Windows C# MacOS Linux diff --git a/Build/NuSpecs/Hid.Net.nuspec b/Build/NuSpecs/Hid.Net.nuspec index 1a593f4e..34664128 100644 --- a/Build/NuSpecs/Hid.Net.nuspec +++ b/Build/NuSpecs/Hid.Net.nuspec @@ -6,10 +6,10 @@ Codestin Search App Cross-platform .NET library for talking to HID devices. Backed by the Device.Net framework Cross-platform .NET library for talking to HID devices. Backed by the Device.Net framework - 4.2.1 + 4.3.0-beta Christian Findlay https://github.com/MelbourneDeveloper/Device.Net - Fixes cancellation tokens on Hid devices + Muiltple stability fixes Copyright (c) 2021 Christian Findlay Hid USB Android UWP Windows C# MacOS Linux @@ -19,13 +19,13 @@ MIT - + - + - + diff --git a/Build/NuSpecs/SerialPort.Net.nuspec b/Build/NuSpecs/SerialPort.Net.nuspec index ef4b7a78..f7ac1b12 100644 --- a/Build/NuSpecs/SerialPort.Net.nuspec +++ b/Build/NuSpecs/SerialPort.Net.nuspec @@ -6,10 +6,10 @@ Codestin Search App Cross-platform .NET library for talking to Serial Port / COM devices. Backed by the Device.Net framework Cross-platform .NET library for talking to Serial Port / COM devices. Backed by the Device.Net framework - 4.2.1 + 4.3.0-beta Christian Findlay https://github.com/MelbourneDeveloper/Device.Net - + Muiltple stability fixes Copyright (c) 2021 Christian Findlay Hid USB Android UWP Windows C# MacOS Linux @@ -19,10 +19,10 @@ MIT - + - + diff --git a/Build/NuSpecs/Usb.Net.nuspec b/Build/NuSpecs/Usb.Net.nuspec index ac93216d..9ba2ce2f 100644 --- a/Build/NuSpecs/Usb.Net.nuspec +++ b/Build/NuSpecs/Usb.Net.nuspec @@ -6,10 +6,10 @@ Codestin Search App Cross-platform .NET library for talking to USB devices. Backed by the Device.Net framework Cross-platform .NET library for talking to USB devices. Backed by the Device.Net framework - 4.2.1 + 4.3.0-beta Christian Findlay https://github.com/MelbourneDeveloper/Device.Net - Enables control transfer on Android device hosts. I.e. you can update firmware from your phone + Muiltple stability fixes Copyright (c) 2021 Christian Findlay Hid USB Android UWP Windows C# MacOS Linux @@ -19,16 +19,16 @@ MIT - + - + - + - + diff --git a/README.md b/README.md index c35cd96d..6d83f57c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Don't waste your time with the obscurities of connecting to devices and learning ### Version 4.x is live on [Nuget.org](https://www.nuget.org/packages/Device.Net)! Take a look at the [4.0 project](https://github.com/MelbourneDeveloper/Device.Net/projects/11) to see new features and fixes. Version 4 has public interface changes. You will need to read through the documentation to upgrade from version 3 to version 4. -#### New in 4.2.1 +#### New in 4.3.0-beta - You can do USB [control transfer from an Android host](https://github.com/MelbourneDeveloper/Device.Net/pull/216). - Cancellation tokens are [fixed](https://github.com/MelbourneDeveloper/Device.Net/pull/215) for Hid devices diff --git a/docs/api/Device.Net.ConnectedDeviceDefinition.html b/docs/api/Device.Net.ConnectedDeviceDefinition.html index 7e46aaa6..caa6861f 100644 --- a/docs/api/Device.Net.ConnectedDeviceDefinition.html +++ b/docs/api/Device.Net.ConnectedDeviceDefinition.html @@ -10,7 +10,7 @@ - + @@ -110,20 +110,15 @@
Syntax

Constructors

- - | - Improve this Doc - - - View Source - + +

ConnectedDeviceDefinition(String, DeviceType, Nullable<UInt32>, Nullable<UInt32>, String, String, String, Nullable<UInt16>, Nullable<UInt16>, Nullable<UInt16>, Nullable<Int32>, Nullable<Int32>, String, Nullable<Guid>)

Declaration
-
public ConnectedDeviceDefinition(string deviceId, DeviceType deviceType, uint? vendorId = default(uint? ), uint? productId = default(uint? ), string productName = null, string manufacturer = null, string serialNumber = null, ushort? usage = default(ushort? ), ushort? usagePage = default(ushort? ), ushort? versionNumber = default(ushort? ), int? writeBufferSize = default(int? ), int? readBufferSize = default(int? ), string label = null, Guid? classGuid = default(Guid? ))
+
public ConnectedDeviceDefinition(string deviceId, DeviceType deviceType, uint? vendorId = null, uint? productId = null, string productName = null, string manufacturer = null, string serialNumber = null, ushort? usage = null, ushort? usagePage = null, ushort? versionNumber = null, int? writeBufferSize = null, int? readBufferSize = null, string label = null, Guid? classGuid = null)
Parameters
@@ -209,13 +204,8 @@
Parameters

Properties

- - | - Improve this Doc - - - View Source - + +

ClassGuid

@@ -239,13 +229,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

DeviceId

The device Id or path specific to the platform for the device

@@ -270,13 +255,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

DeviceType

The type of device interface

@@ -301,13 +281,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

Label

Freeform tag to be used as needed

@@ -332,13 +307,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

Manufacturer

Name of the device's manufacturer

@@ -363,13 +333,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

ProductId

Product Id

@@ -394,13 +359,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

ProductName

The name of the device product according to the Manufacturer

@@ -425,13 +385,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

ReadBufferSize

The maximum size of data to be read from the device

@@ -456,13 +411,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

SerialNumber

Unique serial number of the physical device

@@ -487,13 +437,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

Usage

@@ -517,13 +462,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

UsagePage

Used to further filter down device definitions on some platforms

@@ -548,13 +488,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

VendorId

Vendor ID

@@ -579,13 +514,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

VersionNumber

Device version number

@@ -610,13 +540,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

WriteBufferSize

The maximum size of data to be written to the device

@@ -643,13 +568,8 @@
Property Value

Methods

- - | - Improve this Doc - - - View Source - + +

ToString()

@@ -682,12 +602,6 @@
Overrides

Constructors

- - | - Improve this Doc - - - View Source - + +

DeviceBase(String, ILoggerFactory, ILogger)

@@ -163,13 +158,8 @@
Parameters

Properties

- - | - Improve this Doc - - - View Source - + +

DeviceId

@@ -193,13 +183,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

Logger

@@ -223,13 +208,8 @@
Property Value
- - | - Improve this Doc - - - View Source - + +

LoggerFactory

@@ -255,13 +235,8 @@
Property Value

Methods

- - | - Improve this Doc - - - View Source - + +

Dispose()

@@ -270,13 +245,8 @@
Declaration
public virtual void Dispose()
- - | - Improve this Doc - - - View Source - + +

Dispose(Boolean)

@@ -302,13 +272,8 @@
Parameters
- - | - Improve this Doc - - - View Source - + +

Flush(CancellationToken)

@@ -349,20 +314,15 @@
Returns
- - | - Improve this Doc - - - View Source - + +

GetDeviceDefinitionFromWindowsDeviceId(String, DeviceType, ILogger, Nullable<Guid>)

Declaration
-
public static ConnectedDeviceDefinition GetDeviceDefinitionFromWindowsDeviceId(string deviceId, DeviceType deviceType, ILogger logger, Guid? classGuid = default(Guid? ))
+
public static ConnectedDeviceDefinition GetDeviceDefinitionFromWindowsDeviceId(string deviceId, DeviceType deviceType, ILogger logger, Guid? classGuid = null)
Parameters
@@ -411,13 +371,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

ReadAsync(CancellationToken)

@@ -458,20 +413,15 @@
Returns
- - | - Improve this Doc - - - View Source - + +

WriteAndReadAsync(Byte[], CancellationToken)

Declaration
-
public Task<TransferResult> WriteAndReadAsync(byte[] writeBuffer, CancellationToken cancellationToken = default(CancellationToken))
+
public async Task<TransferResult> WriteAndReadAsync(byte[] writeBuffer, CancellationToken cancellationToken = default(CancellationToken))
Parameters
@@ -510,13 +460,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

WriteAsync(Byte[], CancellationToken)

@@ -573,12 +518,6 @@

Implements

Constructors

- - | - Improve this Doc - - - View Source - + +

DeviceEventArgs(IDevice)

@@ -150,13 +145,8 @@
Parameters

Properties

- - | - Improve this Doc - - - View Source - + +

Device

@@ -187,12 +177,6 @@
Property Value

Methods

- - | - Improve this Doc - - - View Source - + +

Aggregate(IDeviceFactory, IDeviceFactory, ILoggerFactory)

@@ -169,13 +164,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

Aggregate(IList<IDeviceFactory>, ILoggerFactory)

Creates a new IDeviceFactory that contains with the existing deviceFactories

@@ -222,20 +212,15 @@
Returns
- - | - Improve this Doc - - - View Source - + +

ConnectFirstAsync(IDeviceFactory, ILogger)

Declaration
-
public static Task<IDevice> ConnectFirstAsync(this IDeviceFactory deviceFactory, ILogger logger = null)
+
public static async Task<IDevice> ConnectFirstAsync(this IDeviceFactory deviceFactory, ILogger logger = null)
Parameters
@@ -274,20 +259,15 @@
Returns
- - | - Improve this Doc - - - View Source - + +

GetFirstDeviceAsync(IDeviceFactory)

Declaration
-
public static Task<IDevice> GetFirstDeviceAsync(this IDeviceFactory deviceFactory)
+
public static async Task<IDevice> GetFirstDeviceAsync(this IDeviceFactory deviceFactory)
Parameters
@@ -321,13 +301,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

IsDefinitionMatch(FilterDeviceDefinition, ConnectedDeviceDefinition, DeviceType)

Compares a ConnectedDeviceDefinition with a FilterDeviceDefinition

@@ -387,12 +362,6 @@
Returns

Constructors

- - | - Improve this Doc - - - View Source - + +

DeviceFactory(ILoggerFactory, GetConnectedDeviceDefinitionsAsync, GetDeviceAsync, Func<ConnectedDeviceDefinition, CancellationToken, Task<Boolean>>)

Constructs a DeviceFactory

@@ -170,13 +165,8 @@
Parameters

Methods

- - | - Improve this Doc - - - View Source - + +

GetConnectedDeviceDefinitionsAsync(CancellationToken)

@@ -217,13 +207,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

GetDeviceAsync(ConnectedDeviceDefinition, CancellationToken)

@@ -269,13 +254,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

SupportsDeviceAsync(ConnectedDeviceDefinition, CancellationToken)

@@ -342,12 +322,6 @@

Extension Methods

Constructors

- - | - Improve this Doc - - - View Source - + +

DeviceListener(IDeviceFactory, Nullable<Int32>, ILoggerFactory)

Handles connecting to and disconnecting from a set of potential devices by their definition

@@ -132,7 +127,7 @@

Declaration
-
public DeviceListener(IDeviceFactory deviceFactory, int? pollMilliseconds, ILoggerFactory loggerFactory)
+
public DeviceListener(IDeviceFactory deviceFactory, int? pollMilliseconds = 1000, ILoggerFactory loggerFactory = null)
Parameters
@@ -163,13 +158,8 @@
Parameters

Properties

- - | - Improve this Doc - - - View Source - + +

DeviceFactory

@@ -195,20 +185,15 @@
Property Value

Methods

- - | - Improve this Doc - - - View Source - + +

CheckForDevicesAsync(CancellationToken)

Declaration
-
public Task CheckForDevicesAsync(CancellationToken cancellationToken = default(CancellationToken))
+
public async Task CheckForDevicesAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
@@ -242,13 +227,8 @@
Returns
- - | - Improve this Doc - - - View Source - + +

Dispose()

@@ -257,13 +237,8 @@
Declaration
public void Dispose()
- - | - Improve this Doc - - - View Source - + +

Start()

Starts the polling for devices if polling is being used.

@@ -273,13 +248,8 @@
Declaration
public void Start()
- - | - Improve this Doc - - - View Source - + +

Stop()

@@ -290,13 +260,8 @@
Declaration

Events

- - | - Improve this Doc - - - View Source - + +

DeviceDisconnected

@@ -319,13 +284,8 @@
Event Type
- - | - Improve this Doc - - - View Source - + +

DeviceInitialized

@@ -362,12 +322,6 @@

Implements