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