System.IO.Ports 9.0.0-preview.2.24128.5
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 
Streamobject through theBaseStreamproperty 
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.
Showing the top 20 packages that depend on System.IO.Ports.
| Packages | Downloads | 
|---|---|
| 
                                                    AME.Extensions
                                                     Densen的.net常用扩展库 
                                                 | 
                                                28 | 
| 
                                                    AME.Extensions
                                                     Densen的.net常用扩展库 
                                                 | 
                                                36 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. 
                                                 | 
                                                28 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. 
                                                 | 
                                                29 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. 
                                                 | 
                                                30 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
                                                 | 
                                                29 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
                                                 | 
                                                30 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
                                                 | 
                                                32 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
6c6b536dffb4da0c45ff14921bfee10265265050 
When using NuGet 3.x this package requires at least version 3.4. 
                                                 | 
                                                29 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
When using NuGet 3.x this package requires at least version 3.4. 
                                                 | 
                                                29 | 
| 
                                                    Microsoft.Windows.Compatibility
                                                     This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 
When using NuGet 3.x this package requires at least version 3.4. 
                                                 | 
                                                722 | 
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- No dependencies.
 
.NET 8.0
- runtime.native.System.IO.Ports (>= 9.0.0-preview.2.24128.5)
 
.NET 9.0
- runtime.native.System.IO.Ports (>= 9.0.0-preview.2.24128.5)
 
.NET Standard 2.0
- runtime.native.System.IO.Ports (>= 9.0.0-preview.2.24128.5)