X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2FOICSensorBoard%2Fclient.cpp;h=724735f1a010aa82c6d8d56a9f0143629f366005;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=4b7fe85f18d84540e639725a0ed06a0866554d84;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/examples/OICSensorBoard/client.cpp b/examples/OICSensorBoard/client.cpp index 4b7fe85..724735f 100644 --- a/examples/OICSensorBoard/client.cpp +++ b/examples/OICSensorBoard/client.cpp @@ -42,8 +42,8 @@ void IoTClient::initializePlatform() void IoTClient::findResource() { - string coap_multicast_discovery = string(OC_WELL_KNOWN_QUERY "?if=" EDISON_RESOURCE_INTERFACE); - OCPlatform::findResource("", coap_multicast_discovery.c_str(), m_resourceDiscoveryCallback, + 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); } @@ -148,7 +148,7 @@ void TemperatureSensor::onObserve(const HeaderOptions headerOptions, const OCRep { double value; rep.getValue(TEMPERATURE_RESOURCE_KEY, value); - cout << "Observing TemperatureSensor: Current temperature reading is " << value << endl; + cout << "Observing TemperatureSensor: Current temperature reading in Celsius is " << value << endl; cout << "Sequence number: " << sequenceNumber << endl; } else @@ -170,7 +170,7 @@ void TemperatureSensor::onGet(const HeaderOptions& headerOptions, { double value; representation.getValue(TEMPERATURE_RESOURCE_KEY, value); - cout << endl << endl << "Current temperature reading: " << value << endl; + cout << endl << endl << "Current temperature reading in Celsius: " << value << endl; } else { cerr << endl << endl << "Error in GET response from temperature sensor resource" << endl;