return;
CATCH:
- iotcon_attributes_h attributes;
- iotcon_representation_h responseRep;
+ iotcon_attributes_h attributes = NULL;
+ iotcon_representation_h responseRep = NULL;
iotcon_representation_create(&responseRep);
- iotcon_attributes_h responseAttributes;
+ iotcon_attributes_h responseAttributes = NULL;
iotcon_attributes_create(&responseAttributes);
if (reqRep != NULL) {
if (appctl_request_char) {
payload.set(NULL, CONV_JSON_APP_CONTROL_REQUEST, appctl_request_char);
}
- if (appcontrol_result == IOTCON_ERROR_NONE) {
- payload.set(NULL, CONV_JSON_APP_CONTROL_RESULT, resultStr.c_str());
- }
- payload.set(NULL, CONV_JSON_APP_CONTROL_RESULT, resultStr.c_str());
+
result.set(NULL, CONV_JSON_DESCRIPTION, cb_info.requestObj->getDescription());
result.set(NULL, CONV_JSON_PAYLOAD, payload);