.NET Core 3.0 provides basic support for
System.IO.Ports.SerialPort on Linux. Previously, .NET Core only supported using
SerialPort on Windows.
SerialPortclass control a serial port file resource.
Streamobject, accessible through the
BaseStreamproperty, and passed to classes that wrap or use streams.
Running .NET Core 3.0 on Linux with Docker works better with cgroup memory limits. Running a Docker container with memory limits, such as with
docker run -m, changes how .NET Core behaves.
Two packages have been released to NuGet that you can use for GPIO programming:
The GPIO packages include APIs for GPIO, SPI, I2C, and PWM devices. The IoT bindings package includes device bindings. For more information, see the devices GitHub repo.
.NET Core 3.0 adds support for ARM64 for Linux. The primary use case for ARM64 is currently with IoT scenarios. For more information, see .NET Core ARM64 Status.
Docker images for .NET Core on ARM64 are available for Alpine, Debian, and Ubuntu.