ali-f 4 weeks ago
parent 271ed8485c
commit 0e2e09c8d5
  1. 2
      services/serialPortService.js

@ -23,7 +23,7 @@ async function serialPortList(req, res) {
console.log(111111, serialPort) console.log(111111, serialPort)
const buff = Buffer.allocUnsafe(4); const buff = Buffer.allocUnsafe(4);
buff.writeUInt8(`#0${req.params.id}$`); buff.write(`#0${req.params.id}$`);
serialPort.write(buff) serialPort.write(buff)
} }

Loading…
Cancel
Save