Closed ZantsuRocks closed 2 months ago
slaveId use url parameter as "modbus-tcp:tcp://127.0.0.1:502?request-timeout=5000&default-unit-identifier=1"
For TCP connections there is no problem in this. But for Serial connections this breaks all the utility of a Slave ID, we can have at least 247 slaves in serial communication, using this parameter as connection parameter just make the use difficult, we need to keep opening and closing the serial connection. I was using the TCP transport just to debug without a real hardware, my final transport will be serial.
Try this one.
I can succeed.
builder.addTagAddress("value-1", "holding-register:1:UINT[10]{unit-id: 2}");
Can we close this issue?
Can we close this issue?
I gave up on using this library since my project is heavily dependent on SlaveID. You can close the issue, and if I use the library again, I will check and open another one if necessary.
What happened?
I think that something is not working with the TAG Creation...
I cant build a tag to read data from slave-id 2 in modbus.
I have a network with 10 slave, i need to read them in order but the string won't build
When i remove the "{unit-id 2}" from the tag it works.
the error:
Version
v0.12.0
Programming Languages
Protocols