for testing wifi

Dependents:   ESP8266_Test_WIFI

Fork of ESP8266Interface by Steve Kim

Revision:
13:41098c907200
Parent:
1:fb4494783863
Child:
16:3f0efaa57a12
--- a/Socket/Endpoint.cpp	Wed Oct 08 19:57:58 2014 +0000
+++ b/Socket/Endpoint.cpp	Sun Nov 30 21:14:09 2014 +0000
@@ -22,9 +22,9 @@
 using std::memset;
 
 Endpoint::Endpoint()  {
-    wifly = Wifly::getInstance();
-    if (wifly == NULL)
-        error("Endpoint constructor error: no wifly instance available!\r\n");
+    ESP8266 = ESP8266::getInstance();
+    if (ESP8266 == NULL)
+        error("Endpoint constructor error: no ESP8266 instance available!\r\n");
     reset_address();
 }
 Endpoint::~Endpoint() {}
@@ -36,7 +36,7 @@
 
 int Endpoint::set_address(const char* host, const int port) {
     //Resolve DNS address or populate hard-coded IP address
-    wifly->gethostbyname(host, _ipAddress);
+    ESP8266->gethostbyname(host, _ipAddress);
     _port = port;
     return 0;
 }