How to return value using the switch in arduino iot dashboard

Is there any way I can use the switch to turn on my led in the Arduino Uno but not the NodeMcu? (Just to recap, my Arduino Uno is connected to node MCU for serial communication purpose. )