Hi,
I am new to jamod - first day...:) Also, I am pretty green when it comes to Modbus.
I am trying to figure out how to set the slave ID on the Master (client) code to talk to a specific slave device that has device ID 2.
Would it be this or is setUnitID() used for something else?
req.setUnitID(0);
Thanks,
Joe
Log in to post a comment.
Hi,
I am new to jamod - first day...:) Also, I am pretty green when it
comes to Modbus.
I am trying to figure out how to set the slave ID on the Master (client)
code to talk to a specific slave device that has device ID 2.
Would it be this or is setUnitID() used for something else?
req.setUnitID(0);
Thanks,
Joe