mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

NOTE:

This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!

Revision:
108:df7102357164
Parent:
58:7a2df2ce591e
--- a/source/Utils.cpp	Tue Apr 25 21:28:41 2017 +0000
+++ b/source/Utils.cpp	Tue Apr 25 22:42:59 2017 +0000
@@ -74,8 +74,13 @@
     config.setWiFiAuthType(WIFI_NONE);      							// default: none
     config.setWiFiAuthKey((char *)WIFI_DEFAULT_AUTH_KEY);   			// default: changeme
     
-    // Default CoAP Connection Type
-    config.setCoAPConnectionType(COAP_UDP);								// default CoAP Connection Type
+#ifdef ENABLE_MBED_CLOUD_SUPPORT
+    // Default CoAP Connection Type (mbed Cloud R1.2+)
+    config.setCoAPConnectionType(COAP_TCP);								// default CoAP Connection Type - TCP
+#else
+    // Default CoAP Connection Type (Connector/mDS)
+    config.setCoAPConnectionType(COAP_UDP);								// default CoAP Connection Type - UDP
+#endif
 
 	// Set the default IP Address Type
 #if MBED_CONF_APP_NETWORK_INTERFACE == MESH_LOWPAN_ND || MBED_CONF_APP_NETWORK_INTERFACE == MESH_THREAD