From 26bf6bd8aa062ef1899d5f92492b11751412ffed Mon Sep 17 00:00:00 2001 From: Jihun Ha Date: Sun, 11 Sep 2016 20:57:09 +0900 Subject: [PATCH] Fix Jira issues(IOT-1263) IOT-1263: [ES][Linux] Get Location API can not get expected location (https://jira.iotivity.org/browse/IOT-1263) Change-Id: Ifc0a088c3d7c8166fdc093976bebb3e84d036295 Signed-off-by: Jihun Ha Reviewed-on: https://gerrit.iotivity.org/gerrit/11659 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- service/easy-setup/mediator/richsdk/inc/ESRichCommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h b/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h index deeac85..4830a7e 100755 --- a/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h +++ b/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h @@ -417,9 +417,9 @@ namespace OIC */ std::string getLocation() const { - if(m_rep.hasAttribute(OC_RSRVD_ES_MODELNUMBER)) + if(m_rep.hasAttribute(OC_RSRVD_ES_LOCATION)) { - return m_rep.getValue(OC_RSRVD_ES_MODELNUMBER); + return m_rep.getValue(OC_RSRVD_ES_LOCATION); } return std::string(""); } -- 2.7.4