runtime.osx-arm64.runtime.native.System.IO.Ports
9.0.0
Prefix Reserved
dotnet add package runtime.osx-arm64.runtime.native.System.IO.Ports --version 9.0.0
NuGet\Install-Package runtime.osx-arm64.runtime.native.System.IO.Ports -Version 9.0.0
<PackageReference Include="runtime.osx-arm64.runtime.native.System.IO.Ports" Version="9.0.0" />
paket add runtime.osx-arm64.runtime.native.System.IO.Ports --version 9.0.0
#r "nuget: runtime.osx-arm64.runtime.native.System.IO.Ports, 9.0.0"
// Install runtime.osx-arm64.runtime.native.System.IO.Ports as a Cake Addin #addin nuget:?package=runtime.osx-arm64.runtime.native.System.IO.Ports&version=9.0.0 // Install runtime.osx-arm64.runtime.native.System.IO.Ports as a Cake Tool #tool nuget:?package=runtime.osx-arm64.runtime.native.System.IO.Ports&version=9.0.0
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 (1)
Showing the top 1 NuGet packages that depend on runtime.osx-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. |
GitHub repositories
This package is not used by any popular GitHub repositories.