node-modbus-serial icon indicating copy to clipboard operation
node-modbus-serial copied to clipboard

Ignore unitID on ServerTCP

Open epasinetti opened this issue 3 years ago • 1 comments

Is there a way to unspecify the unitID in ServeTCP initialization ? I need to answer to differents clients connected on same Server and for each of them manage the unitID and answer with different data.

epasinetti avatar Oct 12 '22 11:10 epasinetti

id 255 means listening to all adresses:

https://github.com/yaacov/node-modbus-serial/blob/master/servers/servertcp.js#L23

yaacov avatar Oct 18 '22 08:10 yaacov