Hello.
I use Modbus Master Slave library from this source
Working very well. But now i nedd do this:
I have a set of dip switches (normally opened) connected to 5,6 7 out of Nano. I want do this:
At start i read condition of switches (in SETUP section or earlier (how?)). This swiches will set slave adress at binary (000=0,001=1 111=7) etc. And after that i start my MODBUS exchange.
Now with the library MODBUS objects with adress setting is created BEFORE setup section and i dont know how i can change adress.
How i can do this - dinnamycaly change slave adress (reset after dip switch canging is normal and acceptable for my task) ?
Thank you. Sorry my bad English.