The driver for the ESP8266 WiFi module

Dependents:   Robot Wi-fi

Fork of esp8266-driver by ESP8266

Revision:
2:77a1e2188ed9
Parent:
0:6946b0b9e323
--- a/ESP8266Interface.cpp	Wed Jul 26 12:01:42 2017 +0000
+++ b/ESP8266Interface.cpp	Thu Jul 27 03:25:51 2017 +0000
@@ -33,6 +33,16 @@
     _esp.attach(this, &ESP8266Interface::event);
 }
 
+int ESP8266Interface::testWifi() {
+    int ret;
+    ret = _esp.isConnected();
+    //ret = _esp._parser.send("AT+CWJAP?") && _esp._parser.recv("+CWJAP:\"denver\"");
+    //_esp._parser.flush();
+    return(ret);
+}
+
+
+
 int ESP8266Interface::connect(const char *ssid, const char *pass, nsapi_security_t security,
                                         uint8_t channel)
 {