modbusTCPserver.begin(id)

According to library help , by specifying the ID I expect only Server ID defined will respond to Modbus client.. but it's not! All IDs respond (1..255) !
If for instance I define

modbusTCPserver.begin(55);

I can get Modbus response even with ID 1,2,3...all
Why the ID has no effect?

The ID doesn't make sense in the TCP network as the IP address is identifying the server. Why do you want to send request to that IP with a wrong ID?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.