This is my first time using Arduino Forum. I just bought 2 Arduino Yun for my project.
How can we send a command from a Yun board to the second Yun board over wifi?
Ex, We connect a push button to the first Yun board, and an LED to the second Yun board. How to send the push button status (0 or 1) over wifi to the second Yun board to turn on / off the LED?
IHMO I think that the only problem is to understand the yun ip.
after that you can do it in the way you are more comfortable: raw socket, http, udp, osc, what you want. in which language do you want: c++ on arduino side, python, js with nodejs.. whatever
ATM, the easiest thing to do is to write on each yun's /etc/hosts file the IP address of the other one
This way, your sketches/programs will use the name instead of the IP and, if and when you'll have to change it, you'll change it in only one place
More articulated solutions implies using a local DNS server