yaacov / node-modbus-serial

A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS
ISC License
607 stars 233 forks source link

Modbus TCP Connection was closed after 100 Seconds of Inactivity #535

Open narttmk opened 7 months ago

narttmk commented 7 months ago

Hello everyone, I am connecting to a Modbus simulation through Modbus TCP. If I don't read any address, after 100 seconds of connection, the event client.on("close", () => {}) will be triggered. I'm unsure whether this issue is related to the library or the Modbus simulation itself (I have tested on two different simulations and encountered similar problems). Please help me resolve this issue or provide documentation related to it. Thank you very much.

yaacov commented 7 months ago

Hi, thank you for the issue, I added "help wanted" in case someone is familiar with this issue and can help