How to return value using the switch in arduino iot dashboard

Ok, but I think this code only allows me to switch on the led directly in my nodemcu. My intention is to switch on the led that is connected to Arduino Uno.