added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
46:cc6076ac5026
Parent:
45:65351ebb7c42
Child:
47:e75750ddc413
--- a/api/OptionsBuilder.cpp	Sat Apr 11 22:10:02 2015 +0000
+++ b/api/OptionsBuilder.cpp	Sun Apr 12 03:48:37 2015 +0000
@@ -146,6 +146,13 @@
 }
 
 // add dynamic resource
+OptionsBuilder &OptionsBuilder::addResource(const DynamicResource *resource)
+{
+    // ensure that the boolean isn't mistaken by the compiler for the obs period...
+    return this->addResource(resource,NSP_DEFAULT_OBS_PERIOD,!(((DynamicResource *)resource)->implementsObservation()));
+}
+
+// add dynamic resource
 OptionsBuilder &OptionsBuilder::addResource(const DynamicResource *resource,const bool use_observer)
 {
     // ensure that the boolean isn't mistaken by the compiler for the obs period...