modem
modem copied to clipboard
fix constructor Error replaced with new sp(device, options)
SerialPort don't conatin any sp.SerialPort contructor (module.exports = SerialPort;) so this line: modem.port = new sp.SerialPort(device, options); should be replace with : modem.port = new sp(device, options);
I confirm @malekbenz patch solve my problem
Hi,
what version of Node/npm you use? I can't seem to make it work on my environment. TIA
Sorry but according to the API SerialPort the constructor of serialport is : SerialPort({path,...})