Cloud-Automation / node-modbus

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

how to change device address #221

Closed wenchangshou2 closed 5 years ago

wenchangshou2 commented 5 years ago

Connection method: tcp Multiple device addresses in parallel,[1,2,3,4] How to dynamically switch slaveId????

stefanpoeter commented 5 years ago

You should create a single socket and use this with different clients and different unitIds.