tuxnsk / nodejs_libmodbus

libmodbus binding for nodejs
41 stars 66 forks source link

RTU Id Missing #2

Closed sperrydd closed 9 years ago

sperrydd commented 10 years ago

I was getting Connection Timed Out Error using RTU mode. Found in your modbus.js file about line 694 you were not returning device ID.

Should be like:

return { type: 'RTU', id: id, device: device, baud: baud, parity: parity, dataBit: dataBit, stopBit: stopBit };

Thanks for creating module...

tuxnsk commented 10 years ago

Thanks! Fixed.

2013/12/4 sperrydd notifications@github.com

I was getting Connection Timed Out Error using RTU mode. Found in your src/modbus.js file about line 694 you were not returning device ID.

Should be like:

return { type: 'RTU', id: id, device: device, baud: baud, parity: parity, dataBit: dataBit, stopBit: stopBit };

Thanks for creating module...

— Reply to this email directly or view it on GitHubhttps://github.com/tuxnsk/nodejs_libmodbus/issues/2 .

Contacts: http://tuxnsk.ru/

aik8 commented 9 years ago

Fixed.