Setup and test the ESP8266 Wi Fi SOC from Sparkfun. Sets SSID and PASSWORD and prints status messages. For use on mbed LPC1768. Also reports IP and MAC address. See https://developer.mbed.org/users/4180_1/notebook/using-the-esp8266-with-the-mbed-lpc1768/

Dependencies:   mbed

Fork of ESP8266-configuaration-baudrate by Paul Staron

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Fri Aug 28 01:21:15 2015 +0000
Parent:
4:f40e7eb1ba1e
Commit message:
ver 1.0

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r f40e7eb1ba1e -r 9f46b8cdd469 main.cpp
--- a/main.cpp	Fri Aug 28 01:12:23 2015 +0000
+++ b/main.cpp	Fri Aug 28 01:21:15 2015 +0000
@@ -9,8 +9,8 @@
 char buf[1024];
 char snd[255];
 
-char ssid[32] = "ATT864";     // enter WiFi router ssid inside the quotes
-char pwd [32] = "2419932397"; // enter WiFi router password inside the quotes
+char ssid[32] = "mySSID";     // enter WiFi router ssid inside the quotes
+char pwd [32] = "myPASSWORD"; // enter WiFi router password inside the quotes
 
 void SendCMD(),getreply(),ESPconfig(),ESPsetbaudrate();
 
@@ -156,7 +156,7 @@
 
     pc.printf("\n\n\n  If you get a valid (non zero) IP, ESP8266 has been set up.\r\n");
     pc.printf("  Run this if you want to reconfig the ESP8266 at any time.\r\n");
-    pc.printf("  It saves the SSID and password settings internally\r\n");_
+    pc.printf("  It saves the SSID and password settings internally\r\n");
     wait(10);
 }