Hi Arduino Community,
I am working on IOT "smart home" project which control the relays over WiFi (ethernet shield) arduino Mega and physical push button. HTML page load on SD card which can access over WiFi and relay can toggle over WiFi and with Physical push button.
Recently I add RS485 module and add arduino Uno as a remote operator which send the command to Mega and Mega will toggle the relay based on received cheracer and also update the relay status on server.
Overall project is working as expected only problem is:
If I toggle the led trough remote Uno its not toggle back from web / physical button.(only last relay which toggle)
Its mean any 07 relays toggle but last relay which toggle by remote (RS485) will not toggle back from web server.
Appreciated if some one can look into the attache code.
Smart_home_with_RS485.ino (14.9 KB)
RTU_HMI_Board.ino (20.9 KB)
