Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SerialPort = require('serialport');
- const Readline = SerialPort.parsers.Readline;
- var comPort = 'COM7',
- wasalive,
- lastDataTime,
- lastresult,
- count = 0,
- lastDataTime,
- comStatus,
- error;
- var port = new SerialPort(comPort, {autoOpen: false, baudRate: 9600});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement