diff options
author | Sachin Agrawal <sachin.agrawal@intel.com> | 2015-07-10 09:17:30 -0700 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2015-07-14 22:51:36 +0000 |
commit | bfa83c91bc35dec5ead161bebce4bd92ed8d25ed (patch) | |
tree | c56ee1cdb3c43a19bd1d5f1b17dfae30db81474f /examples | |
parent | 99c5dcda298cc9fc735f8d83316815f9e869ae83 (diff) | |
download | iotivity-bfa83c91bc35dec5ead161bebce4bd92ed8d25ed.tar.gz iotivity-bfa83c91bc35dec5ead161bebce4bd92ed8d25ed.tar.bz2 iotivity-bfa83c91bc35dec5ead161bebce4bd92ed8d25ed.zip |
Improved OIC Virtual Resource definitions (IOT-603)
There were multiple instances of same virtual resource strings
within C stack. This was a cause of 'many' recent un-intended bugs
in the Ioptivity stack. Updated octypes public interface to publish
'reserved' virtual resources and those can be used by applications.
Also updated associated sample applications.
Change-Id: I587727a63dace0086cc27b994bdf238ad203daa4
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1620
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/OICMiddle/Client.cpp | 2 | ||||
-rw-r--r-- | examples/OICSensorBoard/client.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/OICMiddle/Client.cpp b/examples/OICMiddle/Client.cpp index 205212e68..6acab4987 100644 --- a/examples/OICMiddle/Client.cpp +++ b/examples/OICMiddle/Client.cpp @@ -39,7 +39,7 @@ void MiddleClient::findResources() { m_resourceMap.clear(); - OC::OCPlatform::findResource("", OC_WELL_KNOWN_QUERY, CT_DEFAULT, m_findCB); + OC::OCPlatform::findResource("", OC_RSRVD_WELL_KNOWN_URI, CT_DEFAULT, m_findCB); } void MiddleClient::foundOCResource(shared_ptr<OCResource> resource) diff --git a/examples/OICSensorBoard/client.cpp b/examples/OICSensorBoard/client.cpp index f6f402d43..724735f1a 100644 --- a/examples/OICSensorBoard/client.cpp +++ b/examples/OICSensorBoard/client.cpp @@ -42,7 +42,7 @@ void IoTClient::initializePlatform() void IoTClient::findResource() { - string coap_multicast_discovery = string(OC_MULTICAST_DISCOVERY_URI "?if=" EDISON_RESOURCE_INTERFACE); + string coap_multicast_discovery = string(OC_RSRVD_WELL_KNOWN_URI "?if=" EDISON_RESOURCE_INTERFACE); OCPlatform::findResource("", coap_multicast_discovery.c_str(), CT_DEFAULT, m_resourceDiscoveryCallback, OC::QualityOfService::LowQos); } |