Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
Diff: serialPC.cpp
- Revision:
- 7:ae9c47f62946
- Parent:
- 4:13ff9c81dc10
- Child:
- 9:cf406384efd9
diff -r d4ebbaaba295 -r ae9c47f62946 serialPC.cpp
--- 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;