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: EthernetInterface NTPClient mbed-rtos_old mbed
Fork of header_main_public by
debug.cpp
00001 #include "debug.h" 00002 #include "string.h" 00003 00004 UDPSocket debug; 00005 Endpoint debug_server; 00006 char debug_msg1[ 1024+64 ]; 00007 char debug_msg2[ 1024 ]; 00008 00009 void debug_pkg( int size, uint8_t * pkg ){ 00010 static uint8_t i=0; 00011 strcpy( debug_msg1, "Pkg " ); 00012 memcpy( debug_msg1+5, pkg, size ); 00013 debug_msg1[ 4 ] = i++; 00014 debug.sendTo( debug_server, debug_msg1, size+5 ); 00015 }
Generated on Sat Jul 16 2022 08:57:54 by
1.7.2
