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.native.System.IO.Ports --version 9.0.0-rc.2.24473.5
NuGet\Install-Package runtime.native.System.IO.Ports -Version 9.0.0-rc.2.24473.5
<PackageReference Include="runtime.native.System.IO.Ports" Version="9.0.0-rc.2.24473.5" />
paket add runtime.native.System.IO.Ports --version 9.0.0-rc.2.24473.5
#r "nuget: runtime.native.System.IO.Ports, 9.0.0-rc.2.24473.5"
// Install runtime.native.System.IO.Ports as a Cake Addin #addin nuget:?package=runtime.native.System.IO.Ports&version=9.0.0-rc.2.24473.5&prerelease // Install runtime.native.System.IO.Ports as a Cake Tool #tool nuget:?package=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.
-
.NETStandard 2.0
- runtime.android-arm.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.android-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.android-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.android-x86.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-arm.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-bionic-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-bionic-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-musl-arm.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-musl-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-musl-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.linux-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.maccatalyst-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.maccatalyst-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.osx-arm64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
- runtime.osx-x64.runtime.native.System.IO.Ports (>= 9.0.0-rc.2.24473.5)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on runtime.native.System.IO.Ports:
Package | Downloads |
---|---|
System.IO.Ports
Provides classes for controlling serial ports. Commonly Used Types: System.IO.Ports.SerialPort |
|
Microsoft.PowerShell.SDK
Runtime for hosting PowerShell |
|
AdalightNet
Package Description |
|
Yaxiang.IoT.Ports
Package Description |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on runtime.native.System.IO.Ports:
Repository | Stars |
---|---|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK from source
|