NineDigit.SerialTransport 1.0.0-beta.7

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.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
#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

NineDigit Serial Transport

NuGet version (NineDigit.SerialTransport)

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.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on NineDigit.SerialTransport:

Package Downloads
NineDigit.eKasa The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

eKasa PPEKK solution by Nine Digit, s.r.o.

NineDigit.eKasa.StorageManagement The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

No descrpition.

NineDigit.ChduLite The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Communication library for CHDÚ Lite device.

NineDigit.ChduTech The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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