Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NyFileSystems libMiMic mbed-rtos mbed
Diff: main.cpp
- Revision:
- 29:821fd574d883
- Parent:
- 27:e06564324551
- Child:
- 30:2be65b31e086
diff -r 6d00cb43c5ff -r 821fd574d883 main.cpp
--- a/main.cpp Thu Oct 03 05:02:47 2013 +0000
+++ b/main.cpp Wed Oct 23 05:09:04 2013 +0000
@@ -50,7 +50,7 @@
const void* rx;
//get packet pointer and peer info.
led2=1;
- int l=socket.precvfrom(rx,&peer_host,&port);
+ int l=socket.precvFrom(rx,&peer_host,&port);
if(l<0){
//Error
led2=0;
@@ -71,7 +71,7 @@
}
Thread::wait(100);//show LED blinking!
//move to next packet
- socket.precvnext();
+ socket.precvNext();
led2=0;
led3=0;
}