Cloud-Automation / node-modbus

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

Added Function Codes x02 , x03 #7

Closed phauge-cyber closed 8 years ago

phauge-cyber commented 9 years ago

1 - Function code 2 (Read Discrete Inputs) functionality was added. 2 - Function code 3 (read holding registers) functionality was added.

Cloud-Automation commented 9 years ago

Excellent work.

Can you apply unit tests in the test/serialClient.test.js. You can test your code with npm test.

Please add the new API to the README.md.

You also need to update your repository.

Thanks.

phauge-cyber commented 9 years ago

Yes no problem. Ill get to it!

Thanks

Cloud-Automation commented 8 years ago

Hey, I've added an additional pull request for the readHoldingRegister fc, check it out.