Add setCredID to mediator sample application 53/11653/5
authorJihun Ha <jihun.ha@samsung.com>
Sun, 11 Sep 2016 07:11:49 +0000 (16:11 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 12 Sep 2016 01:56:10 +0000 (01:56 +0000)
To tranfer a certificate to Enrollee, you need to specify a credential ID
corresponding to the certificate.

Change-Id: I79c39ff1a6f0f90175cfe11c6ca7ed719f3cf222
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11653
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/sampleapp/mediator/linux/richsdk_sample/mediator_cpp.cpp

index e89a344..3942a6e 100755 (executable)
@@ -244,6 +244,7 @@ void provisionCloudProperty()
     CloudProp cloudProp;
     cloudProp.setCloudProp("authCode", "authProvider", "ciServer");
     cloudProp.setCloudID("f002ae8b-c42c-40d3-8b8d-1927c17bd1b3");
+    cloudProp.setCredID(1);
 
     try
     {