use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
8:f950fb1b78c0
Parent:
1:16f0fb5b8d97
Child:
13:9edad7677211
--- a/mbed-connector-interface/ConnectorEndpoint.h	Sun Feb 21 19:05:14 2016 +0000
+++ b/mbed-connector-interface/ConnectorEndpoint.h	Wed Feb 24 05:52:00 2016 +0000
@@ -62,9 +62,9 @@
     virtual ~Endpoint();
 
     /**
-    Register the endpoint with mbed Device Server
+    Build out the endpoint.
     */
-    void register_endpoint();
+    void build_endpoint();
 
     /**
     Plumb the lower RF network stack
@@ -77,39 +77,39 @@
     */
     static void start();
     
-    //  mbed-client : bootstrap done
-	virtual void bootstrap_done(M2MSecurity *server_object);
+    // register the endpoint
+	void register_endpoint(M2MSecurity *server_instance, M2MObjectList resources);
+	
+	// re-register endpoint
+	void re_register_endpoint();
+	
+	// de-register endpoint and stop scheduling
+	void de_register_endpoint(void);
+	
+	//  mbed-client : object registered
+    virtual void object_registered(M2MSecurity *server_instance, const M2MServer &server);
 
-	//  mbed-client : object registered
-    virtual void object_registered(M2MSecurity *security_object, const M2MServer &server_object);
+	//  mbed-client : registration updated
+	virtual void registration_updated(M2MSecurity *server_instance, const M2MServer &server) ;
 
 	//  mbed-client : object unregistered
-	virtual void object_unregistered(M2MSecurity *server_object);
+	virtual void object_unregistered(M2MSecurity *server_instance);
 
-	//  mbed-client : registration updated
-	virtual void registration_updated(M2MSecurity *security_object, const M2MServer & server_object) ;
+    //  mbed-client : bootstrap done
+	virtual void bootstrap_done(M2MSecurity *server_instance);
 
 	//  mbed-client : resource value updated
-	virtual void value_updated(M2MBase *base, M2MBase::BaseType type) ;
+	virtual void value_updated(M2MBase *resource, M2MBase::BaseType type) ;
 	
 	//  mbed-client : error handler
 	virtual void error(M2MInterface::Error error);
 	
-	// mbed-client : complete registration of the endpoint
-	void complete_endpoint_registration(M2MSecurity *register_object, M2MObjectList object_list);
-	
-	// mbed-client: re-register endpoint
-	void re_register_endpoint();
-	
-	// mbed-client: de-register endpoint and stop scheduling
-	void closedown_endpoint(void);
-	
 	// get our Options
 	void setOptions(Options *options);
 	
 	// get our Options
 	Options *getOptions();
-		
+	
 	// get our Server
 	M2MSecurity *getServer();
 	
@@ -136,7 +136,7 @@
 	
 	// DynamicResource Lookup
 	DynamicResource *lookupDynamicResource(M2MBase *base);
-		
+	
     // access the logger
     Logger *logger();
 };
@@ -144,4 +144,3 @@
 } // namespace Connector
 
 #endif // __CONNECTOR_ENDPOINT_H__
-