![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Versao com problema no socket rx
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Diff: debug.cpp
- Revision:
- 0:4d17cd9c8f9d
- Child:
- 1:a1758104fa1d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debug.cpp Tue Sep 09 20:01:24 2014 +0000 @@ -0,0 +1,15 @@ +#include "debug.h" +#include "string.h" + +UDPSocket debug; +Endpoint debug_server; +char debug_msg1[ 1024+64 ]; +char debug_msg2[ 1024 ]; + +void debug_pkg( int size, uint8_t * pkg ){ + static uint8_t i=0; + strcpy( debug_msg1, "Pkg " ); + memcpy( debug_msg1+5, pkg, size ); + debug_msg1[ 4 ] = i++; +// debug.sendTo( debug_server, debug_msg1, size+5 ); +} \ No newline at end of file