rskibbe.IO.Ports
1.0.3
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
<PackageReference Include="rskibbe.IO.Ports" Version="1.0.3" />
paket add rskibbe.IO.Ports --version 1.0.3
#r "nuget: rskibbe.IO.Ports, 1.0.3"
// 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 | Versions 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. |
-
net6.0
- System.IO.Ports (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.