added max-age and content-format
Fork of mbedConnectorInterface by
Diff: api/OptionsBuilder.h
- Revision:
- 46:cc6076ac5026
- Parent:
- 45:65351ebb7c42
- Child:
- 47:e75750ddc413
--- a/api/OptionsBuilder.h Sat Apr 11 22:10:02 2015 +0000 +++ b/api/OptionsBuilder.h Sun Apr 12 03:48:37 2015 +0000 @@ -121,14 +121,20 @@ @return instance to ourself */ OptionsBuilder &addResource(const StaticResource *static_resource); - + + /** + Add a NSDL endpoint resource (dynamic) + @param dynamic_resource input the NSDL dynamic resource + */ + OptionsBuilder &addResource(const DynamicResource *dynamic_resource); + /** 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); + OptionsBuilder &addResource(const DynamicResource *dynamic_resource,const bool use_observer); /** Add a NSDL endpoint resource (dynamic) @@ -137,7 +143,7 @@ @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 = NSP_DEFAULT_OBS_PERIOD,const bool use_observer = true); + OptionsBuilder &addResource(const DynamicResource *dynamic_resource,const int sleep_time,const bool use_observer); /** Set the WiFi SSID