X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cloud%2Fsamples%2Fclient%2Fthin_light%2Fthin_room_light.cpp;h=d507b73ee9a69da7601e0800e0272c43c3b631f7;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=17cec7180a6682c36df1a67659bf9d770311dbbb;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/cloud/samples/client/thin_light/thin_room_light.cpp b/cloud/samples/client/thin_light/thin_room_light.cpp index 17cec71..d507b73 100644 --- a/cloud/samples/client/thin_light/thin_room_light.cpp +++ b/cloud/samples/client/thin_light/thin_room_light.cpp @@ -482,7 +482,7 @@ void PublishResources(string host) cout << "Setting device info failed" << endl; } - res = OCRDPublish(host.c_str(), CT_ADAPTER_TCP, NULL, 0, &cbData, OC_LOW_QOS); + res = OCRDPublish(nullptr, host.c_str(), CT_ADAPTER_TCP, NULL, 0, &cbData, OC_LOW_QOS); if (res != OC_STACK_OK) { cout << "Unable to publish default resources to cloud" << endl; @@ -490,7 +490,7 @@ void PublishResources(string host) cout << "Publish user resources" << endl; - res = OCRDPublish(host.c_str(), CT_ADAPTER_TCP, resourceHandles, 1, &cbData, OC_LOW_QOS); + res = OCRDPublish(nullptr, host.c_str(), CT_ADAPTER_TCP, resourceHandles, 1, &cbData, OC_LOW_QOS); if (res != OC_STACK_OK) { cout << "Unable to publish user resources to cloud" << endl;