working code

Dependencies:   mbed

Fork of Working_Client_Code by iX

Revision:
6:1c35ca876e09
Parent:
5:d25327fb7a14
Child:
7:1119c6781d17
--- a/main.cpp	Thu Jun 09 14:32:09 2016 +0000
+++ b/main.cpp	Fri Jun 10 09:42:38 2016 +0000
@@ -65,9 +65,9 @@
         if (bufferPnt>1024) {
             ready=1;
         }
-  //      if ((c==0x0a)||(c==0x0d)){
-  //           ready=1;
-  //           }else
+       if ((c==0x0a)||(c==0x0d)){
+             ready=1;
+             }else
         if (c==0x0a) {
             if (bufferPnt>1) {
                 if (buffer[bufferPnt -2]==0x0d) {
@@ -231,23 +231,7 @@
 
                      break;
 
-            }
-                        case 10: { resp=OKResponse(buffer,">");
-                    if (resp!=NULL) {
-                       INFO("Sending");
-                        //dev.printf("AT+CIPSERVER= 1,6060"); 
-                        // code to get range and format to max 4 digits to be added
-                       dev.printf("Range=%04d\r\n",range);  //10 = length of string being sent
-                       range=(range+500)%6000;
-                       wait(2);
-                       state=9;
-                    }
-                  //  pc.printf("%s\n\r",buffer);
-
-                     break;
-
-            }    
-            
+            }