Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

Revision:
16:491e2336bb95
Parent:
15:469db0f84fd5
Child:
17:4d0e180cde20
--- a/src/WifiControl.cpp	Tue Oct 20 09:24:07 2015 +0000
+++ b/src/WifiControl.cpp	Tue Oct 20 09:32:35 2015 +0000
@@ -20,6 +20,28 @@
  
     //ESPconfig();        //******************  include Config to set the ESP8266 configuration  ***********************
 
+    strcpy(snd,"AT+RST\r\n");
+    SendCMD();
+    wait(2);
+    
+    pc.printf("\n---------- Setting Mode ----------\r\n");
+    strcpy(snd, "AT+CWMODE=1\r\n");
+    SendCMD();
+    timeout=4;
+    getreply();
+ 
+    wait(2);
+ 
+    // set CIPMUX to 0=Single,1=Multi
+    pc.printf("\n---------- Setting Connection Mode ----------\r\n");
+    strcpy(snd, "AT+CIPMUX=1\r\n");
+    SendCMD();
+    timeout=4;
+    getreply();
+ 
+    wait(2);
+    
+    
     
     
 }