added max-age and content-format
Fork of mbedConnectorInterface by
Diff: api/OptionsBuilder.h
- Revision:
- 45:65351ebb7c42
- Parent:
- 42:20c375e74e8e
- Child:
- 46:cc6076ac5026
diff -r dac601597b0e -r 65351ebb7c42 api/OptionsBuilder.h --- a/api/OptionsBuilder.h Sat Apr 11 21:50:56 2015 +0000 +++ b/api/OptionsBuilder.h Sat Apr 11 22:10:02 2015 +0000 @@ -125,11 +125,19 @@ /** Add a NSDL endpoint resource (dynamic) @param dynamic_resource input the NSDL dynamic resource + @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 *dynamic_resource,const bool use_observer = true); + + /** + 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 *dynamic_resource,const int sleep_time = 0,const bool use_observer = true); + OptionsBuilder &addResource(const DynamicResource *dynamic_resource,const int sleep_time = NSP_DEFAULT_OBS_PERIOD,const bool use_observer = true); /** Set the WiFi SSID