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
Diff: api/Utils.cpp
- Revision:
- 48:4b9ee3e32f93
- Parent:
- 29:2f33650ca800
- Child:
- 49:8ac08e5deefb
diff -r e75750ddc413 -r 4b9ee3e32f93 api/Utils.cpp --- a/api/Utils.cpp Sun Apr 12 04:00:53 2015 +0000 +++ b/api/Utils.cpp Mon Apr 13 23:41:34 2015 +0000 @@ -83,6 +83,12 @@ config.setNetworkID((char *)mesh_network_id); config.setRadioChannel((int)mesh_network_id); + // Establish default CoAP observation behavior + config.setImmedateObservationEnabled(false); // default: false (per CoAP spec) + + // Establish default CoAP GET-based observation control behavior + config.setEnableGETObservationControl(false); // default: false until draft is finalized + // main.cpp can override or change any of the above defaults... logger.log("utils_configure_endpoint: gathering configuration overrides..."); options = configure_endpoint(config);