Udp socket sample program. This program will send back the received packet.
Dependencies: mbed NyFileSystems mbed-rtos libMiMic
Revision 30:2be65b31e086, committed 2015-09-15
- Comitter:
- nyatla
- Date:
- Tue Sep 15 11:44:26 2015 +0000
- Parent:
- 29:821fd574d883
- Commit message:
- update libraries
Changed in this revision
diff -r 821fd574d883 -r 2be65b31e086 NyFileSystems.lib --- /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
diff -r 821fd574d883 -r 2be65b31e086 NySDFileSystem.lib --- 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
diff -r 821fd574d883 -r 2be65b31e086 libMiMic.lib --- 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
diff -r 821fd574d883 -r 2be65b31e086 main.cpp --- 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;
diff -r 821fd574d883 -r 2be65b31e086 mbed-rtos.lib --- 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
diff -r 821fd574d883 -r 2be65b31e086 mbed.bld --- 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