memset(appControl, 0, app_control.size() + 1);
strncpy(appControl, app_control.c_str(), app_control.size()+1);
-
iotcon_attributes_add_str(attributes, CONV_JSON_APP_CONTROL, appControl);
iotcon_attributes_add_int(attributes, CONV_JSON_REPLY, reply);
iotcon_attributes_add_str(attributes, CONV_JSON_REQUEST_TYPE, (char *)CONV_LAUNCH_REQUEST);
svcInfo->iotconInfoObj.address = deviceAddress;
svcInfo->iotconInfoObj.uri = CONV_URI_REMOTE_APP_CONTROL;
svcInfo->iotconInfoObj.resourceType = __resourceType;
+ svcInfo->iotconInfoObj.iotconResourceHandle = NULL;
//save service info
clientObj->addServiceInfo(__type, deviceId, (IServiceInfo*)svcInfo);