KOMEG-MauiAndroidSerialPortNative 1.0.0

dotnet add package KOMEG-MauiAndroidSerialPortNative --version 1.0.0
                    
NuGet\Install-Package KOMEG-MauiAndroidSerialPortNative -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KOMEG-MauiAndroidSerialPortNative" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KOMEG-MauiAndroidSerialPortNative" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KOMEG-MauiAndroidSerialPortNative" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KOMEG-MauiAndroidSerialPortNative --version 1.0.0
                    
#r "nuget: KOMEG-MauiAndroidSerialPortNative, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KOMEG-MauiAndroidSerialPortNative@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KOMEG-MauiAndroidSerialPortNative&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KOMEG-MauiAndroidSerialPortNative&version=1.0.0
                    
Install as a Cake Tool

MauiAndroidSerialPortNative

https://github.com/aidenwlf/MauiAndroidSerialPortNative

由于微软官方的串口不支持安卓的操作系统,我自己要在maui平台创建使用串口,所以创建的这个库,使用方面和微软官方的差不多

初始化

var serialPort = new SerialPort("/dev/ttyS7", BaudRate.B38400, Parity.Even, DataBits.CS8, StopBits.One);

还有这个 OnDataReceived 我是代码实现了,但是我用不上我就注释了,如果有小伙伴要用的话,可以提issues我加回去

Product Compatible and additional computed target framework versions.
.NET net7.0-android33.0 is compatible.  net8.0-android was computed.  net9.0-android was computed.  net10.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0-android33.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 553 11/4/2023 1.0.0 is deprecated because it is no longer maintained and has critical bugs.