use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
13:9edad7677211
Parent:
8:f950fb1b78c0
Child:
15:c11dbe4d354c
--- a/mbed-connector-interface/ConnectorEndpoint.h	Thu Mar 10 16:02:04 2016 +0000
+++ b/mbed-connector-interface/ConnectorEndpoint.h	Wed Jun 08 22:32:08 2016 +0000
@@ -68,9 +68,10 @@
 
     /**
     Plumb the lower RF network stack
+    @param device_manager input optional device manager (DeviceManager type)
     @param canActAsRouterNode input boolean indicating whether this node can act as a router node or not.
     */
-    static void plumbNetwork(bool canActAsRouterNode = false);
+    static void plumbNetwork(void *device_manager = NULL,bool canActAsRouterNode = false);
 
     /**
     Initialize the endpoint's configuration and begin the endpoint's main even loop
@@ -118,11 +119,27 @@
 	
 	// configure to act as router node
 	void asRouterNode(bool canActAsRouterNode);
+	
+	// access the logger
+    Logger *logger();
+	
+	// set the device manager
+    void setDeviceManager(void *device_manager);
+    
+    // get the device manager
+    void *getDeviceManager(void);
+    
+    // underlying network is connected (SET)
+    void isConnected(bool connected); 
+    
+    // underlying network is connected (GET)
+    bool isConnected();
 
 private:
     Logger            *m_logger;
     Options           *m_options;
     bool			   m_canActAsRouterNode;
+    bool               m_connected;
     
     // mbed-client support
     M2MInterface   *m_interface;
@@ -133,12 +150,12 @@
     // mbed-client methods
     void create_interface();
     M2MSecurity *create_server_instance();
+    
+    // Device Manager
+    void			*m_device_manager;
 	
 	// DynamicResource Lookup
 	DynamicResource *lookupDynamicResource(M2MBase *base);
-	
-    // access the logger
-    Logger *logger();
 };
 
 } // namespace Connector