wifi

Dependencies:   mbed

Fork of ESP8266-configuration-mbed-LPC1768 by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
ycai47
Date:
Thu Oct 08 01:00:10 2015 +0000
Parent:
5:9f46b8cdd469
Commit message:
wifi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Aug 28 01:21:15 2015 +0000
+++ b/main.cpp	Thu Oct 08 01:00:10 2015 +0000
@@ -9,8 +9,8 @@
 char buf[1024];
 char snd[255];
 
-char ssid[32] = "mySSID";     // enter WiFi router ssid inside the quotes
-char pwd [32] = "myPASSWORD"; // enter WiFi router password inside the quotes
+char ssid[32] = "Yushan";     // enter WiFi router ssid inside the quotes
+char pwd [32] = "CYS2009sy"; // enter WiFi router password inside the quotes
 
 void SendCMD(),getreply(),ESPconfig(),ESPsetbaudrate();
 
@@ -18,7 +18,7 @@
 int main()
 {
     reset=0; //hardware reset for 8266
-    pc.baud(115200);  // set what you want here depending on your terminal program speed
+    pc.baud(9600);  // set what you want here depending on your terminal program speed
     pc.printf("\f\n\r-------------ESP8266 Hardware Reset-------------\n\r");
     wait(0.5);
     reset=1;