天天看点

获取本机串口数量

代码如下

private int GetCommNum()
        {
            return System.IO.Ports.SerialPort.GetPortNames().Length;
        }
           

特此记录

anlog

2023年2月24日

继续阅读