Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
466 stars 174 forks source link

Update modbus-tcp-client.js #152

Closed anxorl closed 6 years ago

anxorl commented 6 years ago

closedOnPurpose is not reset to its initial state, so autoReconnect functionality is lost when you manually close and connect back the same client. Adding this line fix that issue

stefanpoeter commented 6 years ago

Hey thanks @anxorl,

can you provide a test for this?