Wifi Communication: (Arduino Mega)+ Wifi Shield <-> Arduino Yun

Hello :slight_smile:

This is my first post.

I want to know if it's possible to stablish a communication channel between an (Arduino Mega)+ Wifi Shield with Arduino Yun's (receiving and sending messages to each other).

I want to build a centralized network where my Mega Arduino receive and sent data from/to different Arduino Yun.

I know that XBees are a good solution for this problem, but i also wanted to remotly program the Arduino's (OTA - over the air update), and that's why I chose the Yun.

Any help/opinion?
Thanks in advance!