mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

NOTE:

This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!

Revision:
17:defb680f8fce
Parent:
16:dffa38c3340f
Child:
21:0bbe9057e7b1
--- 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