![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
voltando a versao de n aberturas e fechamentos de sockets data 19/09
Dependencies: EthernetInterface NTPClient mbed-rtos mbed EALib
Fork of header_main_publish by
debug.cpp
- Committer:
- klauss
- Date:
- 2014-09-15
- Revision:
- 8:e3bfe62a477e
- Parent:
- 7:019b08223b87
File content as of revision 8:e3bfe62a477e:
#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 ); }