modem icon indicating copy to clipboard operation
modem copied to clipboard

fix constructor Error replaced with new sp(device, options)

Open malekbenz opened this issue 7 years ago • 3 comments

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);

malekbenz avatar Jan 29 '18 09:01 malekbenz

I confirm @malekbenz patch solve my problem

adhisimon avatar Jul 20 '18 09:07 adhisimon

Hi,

what version of Node/npm you use? I can't seem to make it work on my environment. TIA

mckoy03 avatar Aug 12 '18 02:08 mckoy03

Sorry but according to the API SerialPort the constructor of serialport is : SerialPort({path,...})

jay-ike avatar Jul 01 '22 17:07 jay-ike