use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
10:3f79b5e67c22
Parent:
9:faa43faea4ca
Child:
19:56f958475694
--- a/source/Options.cpp	Wed Feb 24 14:50:03 2016 +0000
+++ b/source/Options.cpp	Fri Mar 04 19:16:57 2016 +0000
@@ -21,6 +21,7 @@
  */
 
 #include "mbed-connector-interface/Options.h"
+#include "mbed-connector-interface/Utils.h"
 
 namespace Connector {
 
@@ -75,6 +76,12 @@
     return (char *)this->m_connector_url.c_str();
 }
 
+// Connector Port
+uint16_t Options::getConnectorPort()
+{
+	return extract_port_from_url(this->getConnectorURL(),DEF_COAP_PORT); 
+}
+
 // Device Resources
 DeviceResourcesList *Options::getDeviceResourceList()
 {
@@ -123,6 +130,16 @@
 	return this->m_mesh_type;
 }
 
+// CoAP Connection Type
+CoAPConnectionTypes Options::getCoAPConnectionType() {
+	return this->m_coap_connection_type;
+}
+
+// IP Address Type
+IPAddressTypes Options::getIPAddressType() {
+	return this->m_ip_address_type;
+}
+
 // Immediate Observationing Enabled
 bool Options::immedateObservationEnabled() {
     return this->m_enable_immediate_observation;