tyrrellsystems / node-red-contrib-serial-modbus

This node is now maintained from @leifnel's fork
https://github.com/leifnel/node-red-contrib-serial-modbus
Apache License 2.0
7 stars 13 forks source link

Error when trying to use module #2

Closed davemclaughlin closed 8 years ago

davemclaughlin commented 8 years ago

This error appears when you try to use the module.

foo - TypeError: Invalid "databits": 8

I am using Node-red version v0.14.6 and Node.js 0.10.29 and running on RPi3

hardillb commented 8 years ago

Can you paste your flow file in here please. It should be in ~/.node-red/

hardillb commented 8 years ago

OK, I know what the problem is, the 8 is being stored as a string not a number. I'll push a fix and update the published npm package

davemclaughlin commented 8 years ago

OK. great stuff. I have deleted flow post. :)

davemclaughlin commented 8 years ago

I just made the change to the code myself as a test and I can confirm that it works so once you push this all will be working again. Thanks for the quick response.

hardillb commented 8 years ago

version 0.0.3 pushed to npm