公告板
版本库
filestore
活动
搜索
登录
template
/
Plantar_pressure
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
new server
cshenfu
2023-03-07
aaab358c9f4f6086a3f9039345928de8622c717c
[template/Plantar_pressure.git]
/
read_com
/
test.js
1
2
3
4
5
6
7
8
const { SerialPort } = require('serialport');
SerialPort.list().then((ports) => {
console.log(ports); // 打印串口列表
}).catch((err) => {
console.log(err);
});