UDP echo client using the WiConnect Library and mbed UDP Socket API.

Dependencies:   WiConnect mbed

Revision:
0:0675bde9bdd5
Child:
1:6053abbb65c5
diff -r 000000000000 -r 0675bde9bdd5 udp_echo_server.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/udp_echo_server.py	Sat Aug 23 13:12:54 2014 +0000
@@ -0,0 +1,11 @@
+import socket
+ 
+ECHO_PORT = 7
+ 
+sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
+sock.bind(('', ECHO_PORT))
+ 
+while True:
+    data, address = sock.recvfrom(256)
+    print "datagram from", address
+    sock.sendto(data, address)