teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

Revision:
22:cb832a9bc704
Parent:
21:b9315cdd9275
Child:
23:f3c87afb6548
--- a/main.cpp	Tue Feb 06 16:33:51 2018 +0000
+++ b/main.cpp	Tue Feb 06 22:07:10 2018 +0000
@@ -318,7 +318,7 @@
     SD1.period_us(pwmPeriod);
     modemCom::atendendoWebServer = false;
     serialPC::serialPC_init();
-    pc.printf("Versao 04/01/2018.\r\n");
+    pc.printf("Versao 06/01/2018.\r\n");
     modemCom::timeOutModem = 30;
     serialModem::serial_init();
     numeroDeBytesPorEnvio = 768;
@@ -443,8 +443,11 @@
         
         if(executaComandoServer){
             executaComandoServer = false;
-            commands::exec(modemCom::status.connIDServerCommand);
-            modemCom::closeConnection(modemCom::status.connIDServerCommand);
+            commands::exec(modemCom::status.connIDServerCommand);            
+            if(!modemCom::status.recebendoArquivoDoServer){
+                pc.printf("Fechando socket chave 4.\r\n");
+                modemCom::closeConnection(modemCom::status.connIDServerCommand);
+            }
         }        
     
         if(modemCom::atendendoWebServer){