use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/ThreadedResourceObserver.h
- Revision:
- 34:a10d65907549
- Parent:
- 33:1d0b855df5a5
- Child:
- 54:dfee8691c83a
--- a/mbed-connector-interface/ThreadedResourceObserver.h Tue Jun 14 19:29:30 2016 +0000 +++ b/mbed-connector-interface/ThreadedResourceObserver.h Tue Jun 14 19:42:15 2016 +0000 @@ -26,6 +26,8 @@ // mbedConnectorInterface configuration #include "mbed-connector-interface/mbedConnectorInterface.h" +#ifdef CONNECTOR_USING_THREADS + // mbed support #if defined(MCI_USE_YOTTA) // mbed support @@ -33,11 +35,7 @@ #else // mbed support #include "mbed.h" - - // Thread support - #ifdef CONNECTOR_USING_THREADS - #include "rtos.h" - #endif + #include "rtos.h" #endif // Base class support @@ -72,10 +70,10 @@ */ static void _observation_notifier(void const *instance); - private: -#ifdef CONNECTOR_USING_THREADS + private: Thread m_observation_thread; -#endif }; +#endif // CONNECTOR_USING_THREADS + #endif // __THREADED_RESOURCE_OBSERVER_H__ \ No newline at end of file