IoT-2208: fix IPCA to get device's DMV and PIID
authorSoemin Tjong <stjong@microsoft.com>
Thu, 4 May 2017 01:45:35 +0000 (18:45 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 11 May 2017 18:53:17 +0000 (18:53 +0000)
commit7d3afa78d1f89716bea600fdf88bc3bbb119d9ad
tree3ac78db4200383989e6c614e78347f8159456043
parent62178436ed151a274f5d90bbd3c2dbc568b0fccc
IoT-2208: fix IPCA to get device's DMV and PIID

https://jira.iotivity.org/browse/IOT-2208

IPCA should not use OCPlatform::getPropertyValue() to obtain the data
model versions and protocol independent ID of the remote server.

It is incorrect as they return the values of the local server
(i.e. the app's own device info).

Change-Id: I7e8f64d9c7ebebd1b9bb4ec9290fbbdd1e0fa412
Signed-off-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19645
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/IPCA/src/ocfframework.cpp
resource/IPCA/unittests/mockOC.cpp