win7中Electron使用SerialPort时的一些错误记录
安装首先在装好Electron的项目中安装SerialPort:npm install serialport使用然后在main.js中尝试使用:const SerialPort = require('serialport');const port = new SerialPort('COM1', { autoOpen: true}, (err) => { if (err) { return console.log(err.message); }});port.on(
原创
2020-09-18 14:23:51 ·
656 阅读 ·
0 评论