Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ESP8266Interface by
Diff: ESP8266Interface.cpp
- Revision:
- 13:41098c907200
- Parent:
- 12:c5f0eac67a8a
- Child:
- 14:4d1128f72e00
diff -r c5f0eac67a8a -r 41098c907200 ESP8266Interface.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ESP8266Interface.cpp Sun Nov 30 21:14:09 2014 +0000
@@ -0,0 +1,31 @@
+#include "ESP8266Interface.h"
+
+ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset,
+ const char * ssid, const char * phrase ) :
+ ESP8266(tx, rx, reset, ssid, phrase )
+{
+ ip_set = false;
+}
+
+int ESP8266Interface::init()
+{
+ reset();
+ return 0;
+}
+
+int ESP8266Interface::connect()
+{
+ return join();
+}
+
+int ESP8266Interface::disconnect()
+{
+ return ESP8266::disconnect();
+}
+
+char * ESP8266Interface::getIPAddress()
+{
+ ip_set = true;
+
+ return ip_string;
+}
\ No newline at end of file
