![](/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: prompt.cpp
- Revision:
- 79:9bc12aa305a9
- Parent:
- 78:1353744f01e1
- Child:
- 80:61d61c9eb75c
--- a/prompt.cpp Tue Dec 16 12:13:01 2014 +0000 +++ b/prompt.cpp Tue Dec 16 16:50:25 2014 +0000 @@ -448,6 +448,11 @@ } } } + +void init_tcp_wdt( void ){ + tcp_wdt.Configure( 600.0 ); +} + void init_fsystem(){ // init file system and check if files exist if (!qspifs.isformatted()) { @@ -542,6 +547,11 @@ tcp_client.close(); bufret = 0; return( NULL ); + }else if( !( strcmp( eth_buffer, "alive" ) ) ){ + tcp_wdt.kick(); + char wake_msg[ 8 ]; + strcpy( wake_msg, "wakeup" ); + tcp_client.send_all( wake_msg, strlen( wake_msg ) ); } }else{ debug_buf = __debug_buf__;