andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
457 stars 268 forks source link

id change #61

Open MZuberP opened 1 year ago

MZuberP commented 1 year ago

Hi, i'm using modbus tcp as server on arduino from this project, is any posibility to change ID number of my server? i can read the same values on different ID's, and i think its little weird

serferra commented 10 months ago

https://control.com/forums/threads/does-slave-id-field-have-significance-in-modbus-tcp.12314/

It seems to be a problem. The library has no place to include the slave ID in TCPIP mode. My supervision device requires defining a slave ID and with "1" it does not work. Has anyone had this problem and found a solution?