From: Heewon Park Date: Mon, 12 Oct 2015 10:47:02 +0000 (+0900) Subject: fixed Resource-encapsulation sampleApplication bug. X-Git-Tag: 1.2.0+RC1~898 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bc14f90ecafe7a5ebfae2f25015d5be11e38ff9;p=platform%2Fupstream%2Fiotivity.git fixed Resource-encapsulation sampleApplication bug. - when called 'getCachedAttribute' function, client can't get cached attribute because of mismatching key of 'attribute'. Change-Id: I6248d2ff34d422fae4b8daf4df8b50804f4745b7 Signed-off-by: Heewon Park Reviewed-on: https://gerrit.iotivity.org/gerrit/3803 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- diff --git a/service/resource-encapsulation/examples/linux/SampleResourceClient.cpp b/service/resource-encapsulation/examples/linux/SampleResourceClient.cpp index 68c6f66..98d7076 100755 --- a/service/resource-encapsulation/examples/linux/SampleResourceClient.cpp +++ b/service/resource-encapsulation/examples/linux/SampleResourceClient.cpp @@ -393,7 +393,7 @@ bool selectResourceType(std::string& resourceType) return true; case REQUEST_LIGHT: resourceType = LIGHT; - defaultKey = "Light"; + defaultKey = "Brightness"; return true; default : std::cout << "Invalid input, please try again" << std::endl;