![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: eth.h
- Revision:
- 36:728498a78e1e
- Parent:
- 35:96885a7931f0
- Child:
- 38:af5ecd6997ab
--- a/eth.h Tue Sep 30 18:15:08 2014 +0000 +++ b/eth.h Tue Sep 30 19:23:53 2014 +0000 @@ -10,9 +10,6 @@ #define udp_waiting_start_pkg 0x01 #define udp_listen 0x02 -#define __START_PKG_COUNT__ 100 -#define UDP_PORT_LISTENER 11406 - int is_start_pkg( uint8_t * data ){ //seq_num must to be 0s if( !data ) return -1; @@ -68,7 +65,15 @@ t.start(); debug_msg("%s", buffer ); - prompt_process( buffer ); + buffer = prompt_process( buffer ); + + if( buffer ){ + debug_msg("--%s--", buffer ); + //server.sendTo( client, buffer, sizeof( buffer ) ); + int sent = server.sendTo( client, buffer, __UDP_ETH_BUFFER_SIZE__ ); + + debug_msg("Sent %d", sent ); + } return( NULL );