Description:
In this example, UDP is implemented on top of RPL. An LLN comprises a UDP server, which accepts available packets, and several UDP clients, which send packets periodically to the server through single-hop or multi-hops. Through this sample, you will learn the basic idea of RPL and operate UDP communications easily without manipulating lower layer functions.
Create sky mote1 for UPD-server.c
In the example, the UDP server does three tasks primarily.
1. Initializes RPL DAG.
2.Set up UPD connection.
3.Waits for packets from the client, receives and prints them on stdout.
Create sky mote2 for udp-client.c
In the example, UDP Client does two tasks primarily.
1. Sets up UPD connection.
2. Sends packet to UDP server periodically.
Data transmission
The motes output and debug messages generated can be seen in the Motes Output window. You can filter the output based on the node ID:node_id to watch a particular node. You can also watch particular debug messages by filtering them.