NineDigit.SerialTransport
1.0.0-beta.7
.NET Standard 2.0
This is a prerelease version of NineDigit.SerialTransport.
dotnet add package NineDigit.SerialTransport --version 1.0.0-beta.7
NuGet\Install-Package NineDigit.SerialTransport -Version 1.0.0-beta.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NineDigit.SerialTransport" Version="1.0.0-beta.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NineDigit.SerialTransport --version 1.0.0-beta.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NineDigit.SerialTransport, 1.0.0-beta.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NineDigit.SerialTransport as a Cake Addin
#addin nuget:?package=NineDigit.SerialTransport&version=1.0.0-beta.7&prerelease
// Install NineDigit.SerialTransport as a Cake Tool
#tool nuget:?package=NineDigit.SerialTransport&version=1.0.0-beta.7&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NineDigit Serial Transport
Multiplatform implementation of data exchange over serial port for .net standard and mono platforms.
Usage
SerialPortOptions opts = new SerialPortOptions()
{
BaudRate = 19200,
ReadTimeout = TimeSpan.FromSeconds(1),
WriteTimeout = TimeSpan.FromSeconds(1)
};
string portName = "/dev/ttyS1"; // e.g. "COM3" for windows
ISerialTransport serialTransport = TransportFactory.CreateSerialTransport(portName, opts, NullLoggerFactory.Instance);
// write data
await serialTransport.WriteAsync(new byte[] { 0x01, 0x02, 0x03 }, CancellationToken.None);
// read data
byte[] response = await serialTransport.ReadAsync(responseLength: 1, CancellationToken.None);
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid monoandroid90 |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.26)
- System.IO.Ports (>= 4.7.0)
-
MonoAndroid 9.0
- LusoVU.XamarinUsbSerialForAndroid (>= 0.2.3)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.26)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on NineDigit.SerialTransport:
Package | Downloads |
---|---|
NineDigit.eKasa
eKasa PPEKK solution by Nine Digit, s.r.o. |
|
NineDigit.eKasa.StorageManagement
No descrpition. |
|
NineDigit.ChduLite
Communication library for CHDÚ Lite device. |
|
NineDigit.ChduTech
Communication library for CHDÚ Tech device. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta.7 | 335 | 11/22/2022 |
1.0.0-beta.6 | 508 | 8/11/2022 |
1.0.0-beta.5 | 360 | 7/21/2022 |