The driver for the ESP8266 WiFi module - isConnected function added, working and tested with mbed os 5.7.6
Fork of esp8266-driver by
Diff: ESP8266Interface.cpp
- Revision:
- 2:0bc0b654995c
- Parent:
- 0:6946b0b9e323
diff -r b4980986fe65 -r 0bc0b654995c ESP8266Interface.cpp --- a/ESP8266Interface.cpp Sun Nov 04 10:15:47 2018 +0000 +++ b/ESP8266Interface.cpp Sun Nov 04 12:50:49 2018 +0000 @@ -67,6 +67,11 @@ return NSAPI_ERROR_OK; } +bool ESP8266Interface::isConnected() +{ + return _esp.isConnected(); + } + int ESP8266Interface::set_credentials(const char *ssid, const char *pass, nsapi_security_t security) { memset(ap_ssid, 0, sizeof(ap_ssid));