use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
88:e78093f6334f
Parent:
87:00b3837986c7
Child:
89:ccd22d25f431
--- a/source/ConnectorEndpoint.cpp	Fri Nov 04 23:54:24 2016 +0000
+++ b/source/ConnectorEndpoint.cpp	Fri Nov 04 23:56:56 2016 +0000
@@ -486,29 +486,19 @@
 void Endpoint::on_unregistered()  {
 	if (__endpoint != NULL) {
 		printf("Connector::Endpoint(Cloud): on_unregistered()\r\n");
-		__endpoint->object_unregistered(this->getSecurityInstance());
+		__endpoint->object_unregistered(__endpoint->getSecurityInstance());
 	}
 }
 #endif
 
 // object registered
 void Endpoint::object_registered(M2MSecurity *security, const M2MServer &server)  {	    	           
-	this->logger()->log("Connector::Endpoint: endpoint registered.");
-	this->m_connected = true;
-	this->m_registered = true;
-	if (this->m_csi != NULL) {
-		this->m_csi->object_registered((void *)this,(void *)security,(void *)&server);
-	}
+	this->object_registered((void *)security,(void *)&server);
 }
 
 // registration updated
 void Endpoint::registration_updated(M2MSecurity *security, const M2MServer &server)  {
-	this->logger()->log("Connector::Endpoint: endpoint re-registered.");
-	this->m_connected = true;
-	this->m_registered = true;
-	if (this->m_csi != NULL) {
-		this->m_csi->registration_updated((void *)this,(void *)security,(void *)&server);
-	}
+	this->registration_updated((void *)security,(void *)&server);
 }
 
 // object unregistered