Added monitoring feature of ESP8266's UART

Dependents:   ESP8266_W7500_Example DualNetworkInterface-Basic

Fork of ESP8266Interface by ESP8266

Revision:
30:c035696b9397
Parent:
17:d11fa4c3ac65
Child:
31:fd0eaf273b11
--- a/Socket/Endpoint.cpp	Tue Apr 28 20:17:51 2015 +0000
+++ b/Socket/Endpoint.cpp	Wed Apr 29 22:43:03 2015 +0000
@@ -34,6 +34,7 @@
 void Endpoint::reset_address(void) {
     _ipAddress[0] = '\0';
     _port = 0;
+    _id = -1;
 }
 
 int Endpoint::set_address(const char* host, const int port) {
@@ -41,7 +42,7 @@
     ESP8266->gethostbyname(host, _ipAddress);
     _port = port;
     //Start the UDP Endpoint 
-    ESP8266->startUDP(_ipAddress,_port);
+    ESP8266->start(ESP_UDP_TYPE,_ipAddress,_port);
     return 0;
 }
 
@@ -52,3 +53,7 @@
 int   Endpoint::get_port() {
     return _port;
 }
+
+int Endpoint::get_id(){
+    return _id;
+}