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:
34:a10d65907549
Parent:
33:1d0b855df5a5
Child:
38:bb6d2be4d54c
--- a/source/OptionsBuilder.cpp	Tue Jun 14 19:29:30 2016 +0000
+++ b/source/OptionsBuilder.cpp	Tue Jun 14 19:42:15 2016 +0000
@@ -188,15 +188,21 @@
         ((DynamicResource *)resource)->setOptions(this);
         ((DynamicResource *)resource)->setEndpoint((const void *)this->getEndpoint());
         if (((DynamicResource *)resource)->isObservable() == true && use_observer == true) {
+        	// Establish the appropriate ResourceObserver
 #if defined (MCI_MINAR_SCHEDULER) 
+			// Minar-based Scheduler ResourceObserver
 			MinarResourceObserver *observer = new MinarResourceObserver((DynamicResource *)resource,(int)sleep_time);
 #else
 	#ifdef CONNECTOR_USING_THREADS
+			// mbedOS RTOS Thread ResourceObserver
             ThreadedResourceObserver *observer = new ThreadedResourceObserver((DynamicResource *)resource,(int)sleep_time);
-	#else
+	#endif
+	#ifdef CONNECTOR_USING_TICKER
+			// mbed Ticker ResourceObserver
             TickerResourceObserver *observer = new TickerResourceObserver((DynamicResource *)resource,(int)sleep_time);
 	#endif
 #endif
+			// If no observer type is set in mbed-connector-interface/configuration.h (EndpointNetwork lib), then "observer" will be unresolved
             this->m_resource_observers.push_back(observer);
 
             // immedate observation enablement option