use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
9:faa43faea4ca
Parent:
8:f950fb1b78c0
Child:
10:3f79b5e67c22
--- a/mbed-connector-interface/Options.h	Wed Feb 24 05:52:00 2016 +0000
+++ b/mbed-connector-interface/Options.h	Wed Feb 24 14:50:03 2016 +0000
@@ -56,6 +56,13 @@
     WIFI_NUM_TYPES
 } WiFiAuthTypes;
 
+// Mesh Types
+typedef enum {
+    MESH_THREAD,
+    MESH_6LOWPAN_ND,
+    MESH_NUM_TYPES
+} MeshTypes;
+
 namespace Connector {
 
 /** Options class
@@ -144,10 +151,15 @@
     */
     unsigned char *getPreSharedKey();
     
-     /**
+    /**
     Get the 802.15.4 Pre Shared Key Identity
     */
     unsigned char *getPreSharedKeyIdentity();
+    
+    /**
+    Get the 802.15.14 Mesh Type
+    */
+    MeshTypes getMeshType();
 
     /**
     Enable/Disable Immediate Observationing
@@ -196,16 +208,17 @@
     string               			m_node_name;
     string               			m_endpoint_type;
     int                    			m_reg_update_period;
-    string						m_connector_url;
+    string							m_connector_url;
 
     // WiFi Resources
     string               			m_wifi_ssid;
     string               			m_wifi_auth_key;
-    WiFiAuthTypes        m_wifi_auth_type;
+    WiFiAuthTypes        			m_wifi_auth_type;
 
     // 802.15.4 Resources
-    unsigned char 		    m_psk[16];
-    unsigned char		    m_psk_identity[2];
+    unsigned char 		    		m_psk[16];
+    unsigned char		    		m_psk_identity[2];
+    MeshTypes						m_mesh_type;
     
     // DTLS/TLS Resources
     uint8_t 						m_server_cert[MAX_SERVER_CERT_LENGTH];