use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
15:c11dbe4d354c
Parent:
13:9edad7677211
Child:
27:b8aaf7dc7023
--- a/mbed-connector-interface/DynamicResource.h	Thu Jun 09 19:05:18 2016 +0000
+++ b/mbed-connector-interface/DynamicResource.h	Fri Jun 10 17:09:56 2016 +0000
@@ -180,6 +180,11 @@
     Determine if we are connected or not
     */
     bool isConnected();
+    
+    /**
+    Determine if we are registered or not
+    */
+    bool isRegistered();
 
 protected:
     int notify(uint8_t *data,int data_length);
@@ -191,14 +196,14 @@
     string                 			   m_res_type;
     uint8_t               			   m_res_mask;
     uint8_t               			   m_obs_number;
-    DataWrapper   			  *m_data_wrapper;
+    DataWrapper   			  		  *m_data_wrapper;
     void                  		      *m_observer;
-    uint8_t               			    m_maxage;
-    uint8_t               			    m_content_format;
-    M2MObject      			   *m_object; 
-    M2MObjectInstance       *m_obj_instance;
-    M2MResource				   *m_res;
-    void                                *m_op_processor;
+    uint8_t               			   m_maxage;
+    uint8_t               			   m_content_format;
+    M2MObject      			   		  *m_object; 
+    M2MObjectInstance       		  *m_obj_instance;
+    M2MResource				          *m_res;
+    void                              *m_op_processor;
 
     // convenience method to create a string from the NSDL CoAP data buffers...
     string coapDataToString(uint8_t *coap_data_ptr,int coap_data_ptr_length);