Closed dorry3 closed 7 months ago
Hello @dorry3,
The esp-modbus supports one instance of master and one slave of each type to work simultaneously. It is not possible to start two Modbus RTU slaves at the same time.
Hello @dorry3,
The esp-modbus supports one instance of master and one slave of each type to work simultaneously. It is not possible to start two Modbus RTU slaves at the same time.
"of each type?" So does it means that now it's possible to have for example 1 rtu master, 1 rtu slave and 1 tcp slave simultaneously?
No, it was not clear enough. Only one master and one slave instance can work simultaneously in the application. For example: Slave RTU + Master TCP, Slave RTU + Master RTU, Master RTU + Slave TCP.
the status of it is in progress and will be implemented in stack v2.0.0_beta1.
This functionality is implemented in v2.0.0-beta release: https://github.com/espressif/esp-modbus/discussions/45 This version is able to create several Master and Slave instances in one user application. Each instance has its own communication options. The documentation, examples, tests are part of this initial release.
The issue will be closed. Feel free to reopen the issue or submit a separate issue.
port0 and port1 work with modbus RTU two instance of a slave at the same time?