The applications for sensor-based networks are drastically increased in the last months and a lot of standards have been developed for them. The 6LoWPAN standard permits to use IPv6 on a network making it compatible with a lot of communication protocols.
Even if the application is very basic we use the AES encryption anyway in order to secure the data transfer where the Cosino board waits for the user input and then sends its commands over the UDP transport protocol to the R21 board. In turn, the R21, turns on/off its user LED labelled LED0. On the other side, when the button labelled SW0 on the R21 board is pressed, it sends back to the Cosino board which in turn report it to the user..