node-modbus-serial
node-modbus-serial copied to clipboard
on disconnecting rs485, no error message
when i try to readHoldingRegisters I get the data. But when I disconnect the rs485, nothing happens, no a bit of message .. it seems like the promise do not fire the catch() block.. also not the then() block.
getAkytecFW = () => {
return client
.readHoldingRegisters(2, 4)
.then((data) => {
console.log(data);
return data.buffer.readUIntBE(0, 2);
})
.catch((e) => {
console.log(e);
});
};
the same when I try to writeRegister... also no Errors