Open vigneshs-dev opened 10 months ago
As of Modbus architecture you can only pull registers from slaves by server. So you need to query them one by one. That is send request to slave 1, wait response (or timeout), query slave 2,.. etc. Only one server is possible.
I am able to make a Basic Master Slave structure to send message from Master and receive ACK message from Slave when the push button is pressed. But, my approach is very much limited to only one Slave device. How can I extend this approach for a maximum of 30 devices. I will attach my Master and Slave codes for you reference.
Master.cpp
Slave.cpp
My Master and Slave devices Serial Monitor Output Screen:
Can you @emelianov help me with this?