use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
17:defb680f8fce
Parent:
16:dffa38c3340f
Child:
21:0bbe9057e7b1
diff -r dffa38c3340f -r defb680f8fce source/DynamicResource.cpp
--- a/source/DynamicResource.cpp	Fri Jun 10 18:53:01 2016 +0000
+++ b/source/DynamicResource.cpp	Fri Jun 10 19:22:26 2016 +0000
@@ -395,6 +395,15 @@
 	Connector::Endpoint *ep = (Connector::Endpoint *)this->m_endpoint;
 	if (ep != NULL)  {
 		is_connected = ep->isConnected();
+		if (is_connected) {
+			//this->logger()->log("DynamicResource::isConnected = true");
+		}
+		else { 
+			//this->logger()->log("DynamicResource::isConnected = false");
+		}
+	}
+	else {
+		//this->logger()->log("DynamicResource::isConnected = false (no endpoint)");
 	}
 	
 	// return our endpoint connection state
@@ -410,10 +419,18 @@
 		Connector::Endpoint *ep = (Connector::Endpoint *)this->m_endpoint;
 		if (ep != NULL)  {
 			is_registered = ep->isRegistered();
+			if (is_registered) {
+				//this->logger()->log("DynamicResource::isRegistered = true");
+			}
+			else { 
+				//this->logger()->log("DynamicResource::isRegistered = false");
+			}
+		}
+		else {
+			//this->logger()->log("DynamicResource::isRegistered = false (no endpoint)");
 		}
 	}
 	
 	// return our endpoint registration state
 	return is_registered;
-}
-
+}
\ No newline at end of file