[Iotcon] fix wrong key value for result
authortaekeun.kang <taekeun.kang@samsung.com>
Tue, 5 Apr 2016 08:12:51 +0000 (17:12 +0900)
committertaekeun.kang <taekeun.kang@samsung.com>
Tue, 5 Apr 2016 08:13:36 +0000 (17:13 +0900)
Change-Id: I969e80d23f7a2f88ec1bd2a355c5c89b1185aa8e
Signed-off-by: taekeun.kang <taekeun.kang@samsung.com>
src/iotcon/iotcon_utils.cc

index e5b3723ddab317a00a823d1c99bf134e6654d809..6fa89bfbfb0be82da1bc88ad4987987a8a211554 100644 (file)
@@ -137,6 +137,8 @@ const std::string kDataModelVersion = "dataModelVersion";
 const std::string kResultType = "resultType";
 const std::string kTriggerType = "triggerType";
 
+const std::string kResult = "result";
+
 using common::TizenResult;
 using common::TizenSuccess;
 
@@ -1146,7 +1148,7 @@ common::TizenResult IotconUtils::ResponseToJson(iotcon_response_h handle,
         LogAndReturnTizenError(result, ("iotcon_response_get_result() failed"));
       }
       std::string result_str = FromResponseResultType(response);
-      res->insert(std::make_pair(kResultType, picojson::value{result_str}));
+      res->insert(std::make_pair(kResult, picojson::value{result_str}));
     }
 
     {