Udp socket sample program. This program will send back the received packet.

Dependencies:   NyFileSystems libMiMic mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
nyatla
Date:
Tue Sep 15 11:44:26 2015 +0000
Parent:
29:821fd574d883
Commit message:
update libraries

Changed in this revision

NyFileSystems.lib Show annotated file Show diff for this revision Revisions of this file
NySDFileSystem.lib Show diff for this revision Revisions of this file
libMiMic.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/NyFileSystems.lib	Tue Sep 15 11:44:26 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/nyatla/code/NyFileSystems/#509d2ac0ba4f
--- a/NySDFileSystem.lib	Wed Oct 23 05:09:04 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/nyatla/code/NySDFileSystem/#22ce3449b224
--- a/libMiMic.lib	Wed Oct 23 05:09:04 2013 +0000
+++ b/libMiMic.lib	Tue Sep 15 11:44:26 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/nyatla/code/libMiMic/#258e84040262
+http://mbed.org/users/nyatla/code/libMiMic/#e40058804062
--- a/main.cpp	Wed Oct 23 05:09:04 2013 +0000
+++ b/main.cpp	Tue Sep 15 11:44:26 2015 +0000
@@ -14,7 +14,6 @@
 
 
 NetConfig cfg; //create network configulation
-Net* net;
 
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
@@ -24,7 +23,8 @@
 
 int main()
 {
-    net=new Net();//Net constructor must be created after started RTOS
+    MiMicNetIf netif;
+    Net* net=new Net(netif);//Net constructor must be created after started RTOS
 
     // manual setting
     cfg.setIpAddr(192,168,128,39);
@@ -62,7 +62,7 @@
             continue;
         }
         led3=1;
-        if(!socket.sendTo(peer_host,port,rx,l)){
+        if(!socket.sendTo(peer_host,port,(const char*)rx,l)){
             //Error
             led2=0;
             led3=0;
--- a/mbed-rtos.lib	Wed Oct 23 05:09:04 2013 +0000
+++ b/mbed-rtos.lib	Tue Sep 15 11:44:26 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#53e6cccd8782
+http://mbed.org/users/mbed_official/code/mbed-rtos/#21b438192b0f
--- a/mbed.bld	Wed Oct 23 05:09:04 2013 +0000
+++ b/mbed.bld	Tue Sep 15 11:44:26 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/ba1f97679dad
\ No newline at end of file