tuxnsk / nodejs_libmodbus

libmodbus binding for nodejs
41 stars 66 forks source link

feat(hex_decode): adds a function to decode HEX-encoded regs #11

Closed aik8 closed 9 years ago

aik8 commented 9 years ago

Adds a function named hexDecode to decode HEX-encoded 2-byte or 4-byte registers returned by a slave device.

aik8 commented 9 years ago

It also takes the negative bit into account...