Tests for the ESP8266Interface running Espressif Firmware

Dependencies:   ESP8266Interface NSAPITests NetworkSocketAPI mbed

Fork of ESP8266InterfaceTests by NetworkSocketAPI

Note

This example code assumes your ESP8266 is running the Espressif Firmware. For instructions on how to update your ESP8266 to use the correct firmware see the Firmware Update Wiki Page.

Revision:
1:be56c18eabec
Parent:
0:99f47847188c
--- a/main.cpp	Thu Mar 03 21:10:26 2016 +0000
+++ b/main.cpp	Wed Mar 09 07:06:20 2016 +0000
@@ -17,19 +17,18 @@
 #include "mbed.h"
 #include "ESP8266Interface.h"
 #include "NSAPITests.h"
- 
+
 ESP8266Interface iface(D1, D0);
- 
+
 int main()
 {
     int32_t result = iface.connect("ssid", "password");
-    
+
     if (result) {
-        printf("Interface failed to connect with code %d\r\n", result);    
+        printf("Interface failed to connect with code %d\r\n", result);
     } else {
         nsapi_tests("ESP8266Interface Tests", &iface, "0.0.0.0", 4000);
         iface.disconnect();
     }
-    while(1) {   
-    }
+    while(1);
 }