wifi1

Dependencies:   mbed

Fork of ESP8266-configuaration-baudrate by Paul Staron

Revision:
4:5b59cd16199e
Parent:
3:14e33fec26c3
--- a/main.cpp	Tue Feb 10 17:14:53 2015 +0000
+++ b/main.cpp	Wed Jun 08 13:50:32 2016 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 
 Serial pc(USBTX, USBRX);
-Serial esp(PTE0, PTE1); // tx, rx 
+Serial esp(p9,p10); // tx, rx 
 
 Timer t;
 
@@ -9,8 +9,8 @@
 char buf[1024];
 char snd[255];
 
-char ssid[32] = "ssid";     // enter router ssid inside the quotes
-char pwd [32] = "password"; // enter router password inside the quotes
+char ssid[32] = "CWMWIFI";     // enter router ssid inside the quotes
+char pwd [32] = "CWM2016TT"; // enter router password inside the quotes
 
 void SendCMD(),getreply(),ESPconfig(),ESPsetbaudrate();
 
@@ -18,7 +18,7 @@
 int main() {
     
     pc.baud(115200);  // set what you want here depending on your terminal program speed
-    esp.baud(9600);   // change this to the new ESP8266 baudrate if it is changed at any time.    
+    esp.baud(115200);   // change this to the new ESP8266 baudrate if it is changed at any time.    
     
     //ESPsetbaudrate();   //******************  include this routine to set a different ESP8266 baudrate  ******************