runtime.linux-arm64.runtime.native.System.IO.Ports
9.0.0-rc.2.24473.5
Prefix Reserved
See the version list below for details.
dotnet add package runtime.linux-arm64.runtime.native.System.IO.Ports --version 9.0.0-rc.2.24473.5
NuGet\Install-Package runtime.linux-arm64.runtime.native.System.IO.Ports -Version 9.0.0-rc.2.24473.5
<PackageReference Include="runtime.linux-arm64.runtime.native.System.IO.Ports" Version="9.0.0-rc.2.24473.5" />
paket add runtime.linux-arm64.runtime.native.System.IO.Ports --version 9.0.0-rc.2.24473.5
#r "nuget: runtime.linux-arm64.runtime.native.System.IO.Ports, 9.0.0-rc.2.24473.5"
// Install runtime.linux-arm64.runtime.native.System.IO.Ports as a Cake Addin #addin nuget:?package=runtime.linux-arm64.runtime.native.System.IO.Ports&version=9.0.0-rc.2.24473.5&prerelease // Install runtime.linux-arm64.runtime.native.System.IO.Ports as a Cake Tool #tool nuget:?package=runtime.linux-arm64.runtime.native.System.IO.Ports&version=9.0.0-rc.2.24473.5&prerelease
About
System.IO.Ports package provides synchronous serial port file resource. Additionally, the functionality of this class can be wrapped in an internal Stream
object, accessible through the BaseStream
property, and passed to classes that wrap or use streams.
Key Features
- synchronous and event-driven I/O
- access to pin and break states
- access to serial driver properties
- access to
Stream
object through theBaseStream
property
How to Use
using System.IO.Ports;
// Provides list of available serial ports
string[] portNames = SerialPort.GetPortNames();
// First available port
string myPortName = portNames[0];
int baudRate = 9600;
SerialPort sp = new SerialPort(myPortName, baudRate);
sp.Open();
sp.WriteLine("Hello World!");
Main Types
The main type provided by this library is:
SerialPort
Additional Documentation
Related Packages
Feedback & Contributing
System.IO.Ports is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on runtime.linux-arm64.runtime.native.System.IO.Ports:
Package | Downloads |
---|---|
runtime.native.System.IO.Ports
Internal implementation package not meant for direct consumption. Please do not reference directly. |
|
AdalightNet
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.