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: 4DGL-uLCD-SE mbed
Diff: src/WifiControl.cpp
- 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);
+
+
}
