CleanServerWorking

Dependencies:   mbed

Fork of SERVER_WIFI_CODE by iX

Files at this revision

API Documentation at this revision

Comitter:
luke_markham
Date:
Thu Jun 09 10:31:03 2016 +0000
Parent:
3:c99ef21cb4b3
Commit message:
Clean Server

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c99ef21cb4b3 -r dc5d7f4ddac8 main.cpp
--- a/main.cpp	Thu Jun 09 09:55:10 2016 +0000
+++ b/main.cpp	Thu Jun 09 10:31:03 2016 +0000
@@ -204,8 +204,7 @@
                     resp=OKResponse(buffer,"OK");
                     if (resp!=NULL) {
                        INFO("Ready");
-                       dev.printf("AT+CIPSERVER= 1,6060\r\n"); 
-                       //dev.printf("AT+CIPSTART=0,\"TCP\",192.168.1.8, 6060");
+                       dev.printf("AT+CIPSERVER=1,6060\r\n"); 
                        state++;
                     }
 
@@ -214,8 +213,6 @@
                 case 9: { resp=OKResponse(buffer,"OK");
                     if (resp!=NULL) {
                        INFO("Ready");
-                        //dev.printf("AT+CIPSERVER= 1,6060"); 
-                       //dev.printf("AT+CIPSEND= 0,10");  //10 = length of string being sent
                        state++;
                     }
                     pc.printf("%s\n\r",buffer);
@@ -224,15 +221,7 @@
 
             }
 
-            case 10: { resp=OKResponse(buffer,"OK");
-                    if (resp!=NULL) {
-                       INFO("Ready");
-                      // dev.printf("AT+CIPSERVER= 1[,6060]");  
-                       state++;
-                    }
-
-                     break;
-                     }
+         
         }            
         }
         __WFI();