rskibbe.IO.Ports 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package rskibbe.IO.Ports --version 1.0.3                
NuGet\Install-Package rskibbe.IO.Ports -Version 1.0.3                
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="rskibbe.IO.Ports" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add rskibbe.IO.Ports --version 1.0.3                
#r "nuget: rskibbe.IO.Ports, 1.0.3"                
#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 rskibbe.IO.Ports as a Cake Addin
#addin nuget:?package=rskibbe.IO.Ports&version=1.0.3

// Install rskibbe.IO.Ports as a Cake Tool
#tool nuget:?package=rskibbe.IO.Ports&version=1.0.3                

Description

A simple package to extend SerialPort communication by adding some async helper methods.

Usage

After Installation, just go ahead and import the corresponding namespace:

Imports rskibbe.IO.Ports

This will enable using the following helper methods & functions.

Keep in mind to actually set a correct NewLine property on the SerialPort-instance itself. Otherwise the functions may not work as you would expect.

ReadLineAsync

Read all data bytewise as string, till a NewLine occurence is being found.

This function does not include the NewLine String itself.

ReadLineAsync(CancellationToken)

Same as above, but with the possibility to provide a CancellationToken.

WriteLineAsync(String)

Writes the target String into the stream, followed by the specified SerialPorts instance NewLine property value as message terminator.

This function will also Flush the Stream async

RequestResponseAsync(String)

Many SerialPort devices are built to work with a Request->Response-alike mechanism. Use this function to send some string data and to get the response right afterwards.

Is the same as using WriteLineAsync first and then getting the response by ReadLineAsync.

RequestResponseAsync(String, CancellationToken)

Same as above, but with the possibility to provide a CancellationToken.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.6 389 2/1/2023
1.0.5 421 6/15/2022
1.0.4 395 6/15/2022
1.0.3 403 6/13/2022
1.0.2 397 6/13/2022
1.0.1 406 6/10/2022
1.0.0 409 6/10/2022