teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

Revision:
7:ae9c47f62946
Parent:
4:13ff9c81dc10
Child:
9:cf406384efd9
--- a/serialPC.cpp	Thu Jun 15 12:50:58 2017 +0000
+++ b/serialPC.cpp	Tue Jul 11 11:55:56 2017 +0000
@@ -42,6 +42,13 @@
         return;
     }
     
+    if(strstr(bufIn,"execAct(")){
+        strtok(bufIn,"(");
+        act=atoi(strtok(NULL,")"));
+        boolExecAct = true;
+        return;
+    }
+    
     if(strstr(bufIn,"cmd/StopSendDeviceCfg;>")){
         recebendoDeviceCfg = false;            
         return;
@@ -56,8 +63,8 @@
     if(strstr(bufIn,"modem:")!=NULL){
         bufIn = &bufIn[6];
         pc.printf("Mensagem ao modem <%s>.\r\n",bufIn);
-        modem.printf("%s",bufIn);
-        modemCom::status.exibeBufModem=true;
+        modemCom::sendToModem(bufIn,1,NULL,NULL,100,1,1);
+        pc.printf("Mesagem do modem <%s>.\r\n",bufModem.getRowBuffer());
         return;
     }      
     
@@ -95,10 +102,7 @@
         return;
     }
     
-    if(strstr(bufIn,"enviaStatusAoServer")){
-        enviaStatusAoServer = true;
-        return;
-    }
+    
     
     if(strstr(bufIn,"enviaArquivoDevices")){
         arquivoEnvioPointer = &sdCard::devices;
@@ -120,6 +124,13 @@
         return;
     }
     
+    if(strstr(bufIn,"conectaWifi()")!=NULL){
+        inicializaModemBool = true;
+        return;
+    }
+    
+    
+    
     if(strstr(bufIn,"exibeArquivo:devices.cfg")!=NULL){        
         sdCard::exibeArquivo(&sdCard::devices);
         return;