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 VZTECH

Revision:
7:019b08223b87
Parent:
4:de46f0d9b14d
Child:
8:e3bfe62a477e
--- a/call_box.cpp	Fri Sep 12 16:46:37 2014 +0000
+++ b/call_box.cpp	Sat Sep 13 19:21:48 2014 +0000
@@ -28,6 +28,7 @@
 void Call_Box::reset_elapsed_time( void ){ 
     this->t.reset(); 
     remaining_attempts = __MAX_ATTEMPTS__;
+    debug_msg("Reset -- remaining_attempts :: %d", remaining_attempts);
 //    timeout = __TIMEOUT__;
 }
 
@@ -39,6 +40,7 @@
     //static int count = 1;
     //if( timeout != __MAX_TIMEOUT__ ) timeout = __STEP__  * count++;
     t.reset();
+    debug_msg("reconfigure_timeout :: %d", remaining_attempts - 1 );
     return( remaining_attempts-- );
 }