use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
31:2507e64fcc42
Parent:
0:1f1f55e73248
Child:
33:1d0b855df5a5
--- a/mbed-connector-interface/ThreadedResourceObserver.h	Tue Jun 14 18:40:15 2016 +0000
+++ b/mbed-connector-interface/ThreadedResourceObserver.h	Tue Jun 14 19:03:20 2016 +0000
@@ -23,22 +23,28 @@
 #ifndef __THREADED_RESOURCE_OBSERVER_H__
 #define __THREADED_RESOURCE_OBSERVER_H__
 
-// mbed support
-#include "mbed.h"
+// switch for proper resource observer selection (from mbedEndpointNetwork)
+#include "mbed-connector-interface/configuration.h"
 
-// switch for proper resource observer selection (from mbedEndpointNetwork)
-#include "configuration.h"
+// mbed support
+#if defined(MCI_USE_YOTTA)
+    // mbed support
+    #include "mbed-drivers/mbed.h"
+#else
+    // mbed support
+    #include "mbed.h"
+    
+    // Thread support
+    #ifdef CONNECTOR_USING_THREADS
+        #include "rtos.h"
+    #endif
+#endif
 
 // mbedConnectorInterface configuration
-#include "mbedConnectorInterface.h"
-
-// Thread support
-#ifdef CONNECTOR_USING_THREADS
-    #include "rtos.h"
-#endif
+#include "mbed-connector-interface/mbedConnectorInterface.h"
 
 // Base class support
-#include "ResourceObserver.h"
+#include "mbed-connector-interface/ResourceObserver.h"
 
 class ThreadedResourceObserver : public ResourceObserver {
     public: