Changed to send own device name in ACL stage 92/96392/1
authorkmook <kmook.choi@samsung.com>
Wed, 9 Nov 2016 01:50:11 +0000 (10:50 +0900)
committerkmook <kmook.choi@samsung.com>
Wed, 9 Nov 2016 01:50:11 +0000 (10:50 +0900)
Change-Id: I5ae1c1f0971344fad9182e9b6c59774a22aab07a
Signed-off-by: kmook <kmook.choi@samsung.com>
daemon/service_provider/RemoteAppControlServiceProvider.cpp

index fcddaa0..cf5560a 100755 (executable)
@@ -689,7 +689,7 @@ int conv::RemoteAppControlServiceProvider::startRequest(Request* requestObj)
 
        iotcon_attributes_add_str(attributes, CONV_JSON_REQUEST_TYPE, (char*)CONV_ACCESS_CONTROL_REQUEST);
        iotcon_attributes_add_str(attributes, CONV_JSON_ACCESS_REQUEST_TYPE, (char*)CONV_ACCESS_CONTROL_REQUEST);
-       iotcon_attributes_add_str(attributes, CONV_JSON_DEVICE_NAME, (char*)svcInfo->deviceName.c_str());
+       iotcon_attributes_add_str(attributes, CONV_JSON_DEVICE_NAME, (char*)conv::util::getDeviceName().c_str());
 
        iotcon_representation_set_attributes(representation, attributes);
        svcInfo->iotconInfoObj.iotconRepresentationHandle = representation;