Grzegorz Zajac
Grzegorz Zajac
Hi, thank you for prompt answer. I have uninstalled the npm modbus-serial package and installed it again from git: `"modbus-serial": "git+https://github.com/yaacov/node-modbus-serial.git"` still the same I'm afraid. I use modbus for...
I have added timeout to options: ```javascript async function readRegisters(ip, registerAddress, numberOfRegisters){ try { client.setID(1); client.setTimeout(999); await client.connectTCP(ip, {port: 502, timeout: 888}) const regs = await client.readHoldingRegisters(registerAddress, numberOfRegisters); return regs.data;...
Hi, I have added a setTimeout like this: ```js async function readCoils(ip, coilAddress, numberOfCoils){ try { setTimeout( () => { local_client.close; }, 900); var local_client = new ModbusRTU(); local_client.setID(clientID); local_client.setTimeout(1000);...
Hi, thank you for the quick answer. I have commented the check and than receive an other error: ``` error: modbus.js readRegisters catch an errorUnexpected data error, expected 1 got...
Hi, after further investigation It seems that the error is related to sending two modbus commands at the same time - my guess. In my app the server is reading...