mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
42:20c375e74e8e
Parent:
19:e2cbaeeea509
Child:
45:65351ebb7c42
--- a/api/OptionsBuilder.h	Sat Apr 11 18:42:51 2015 +0000
+++ b/api/OptionsBuilder.h	Sat Apr 11 21:14:28 2015 +0000
@@ -125,9 +125,11 @@
     /**
     Add a NSDL endpoint resource (dynamic)
     @param dynamic_resource input the NSDL dynamic resource
+    @param sleep_time input the observation sleep time in milliseconds (for observable resource only)
+    @param use_observer input if true, use an appropriate ResourceObserver to observer. if false, the underlying resource will handle it 
     @return instance to ourself
     */
-    OptionsBuilder &addResource(const DynamicResource *static_resource);
+    OptionsBuilder &addResource(const DynamicResource *dynamic_resource,const int sleep_time = 0,const bool use_observer = true);
 
     /**
     Set the WiFi SSID