fixed Resource-encapsulation sampleApplication bug.
authorHeewon Park <h_w.park@samsung.com>
Mon, 12 Oct 2015 10:47:02 +0000 (19:47 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 14 Oct 2015 01:41:44 +0000 (01:41 +0000)
- when called 'getCachedAttribute' function, client can't get cached attribute because of mismatching key of 'attribute'.

Change-Id: I6248d2ff34d422fae4b8daf4df8b50804f4745b7
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3803
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 3bc14f90ecafe7a5ebfae2f25015d5be11e38ff9)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3809

service/resource-encapsulation/examples/linux/SampleResourceClient.cpp

index 68c6f66..98d7076 100755 (executable)
@@ -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;