Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
471 stars 175 forks source link

Please use `require('serialport')` instead of `require('serialport').SerialPort` #60

Closed GermanBluefox closed 8 years ago

GermanBluefox commented 8 years ago

I tested the serial communication and got:

DEPRECATION: Please use require('serialport') instead of require('serialport').SerialPort

Jotan commented 8 years ago

You have to delete the .SerialPort on the require('Serialport').SerialPort to omit that

GermanBluefox commented 8 years ago

I wrote it to BauchBeinePoe, so he can modify this line.

https://github.com/Cloud-Automation/node-modbus/blob/master/src/modbus-serial-client.js#L11