fix compile issue in cloud proxy
@@ -1010,8 +1010,8 @@ get_local_resource_response(oc_client_response_t *data)
print_rep(value_list, false);
free(value_list);
- memcpy(delay_response->buffer, data->_payload, (int)data->_payload_len);
- delay_response->len = data->_payload_len;
+ memcpy(delay_response->response_state->buffer, data->_payload, (int)data->_payload_len);
+ delay_response->response_state->payload_size = data->_payload_len;
oc_send_separate_response(delay_response, data->code);
@@ -1082,8 +1082,8 @@ post_local_resource_response(oc_client_response_t *data)
print_rep(value_list, false);
free(value_list);
- memcpy(delay_response->buffer, data->_payload, (int)data->_payload_len);
- delay_response->len = data->_payload_len;
+ memcpy(delay_response->response_state->buffer, data->_payload, (int)data->_payload_len);
+ delay_response->response_state->payload_size = data->_payload_len;
oc_send_separate_response(delay_response, data->code);
@@ -1184,8 +1184,8 @@ delete_local_resource_response(oc_client_response_t *data)
print_rep(value_list, false);
free(value_list);
- memcpy(delay_response->buffer, data->_payload, (int)data->_payload_len);
- delay_response->len = data->_payload_len;
+ memcpy(delay_response->response_state->buffer, data->_payload, (int)data->_payload_len);
+ delay_response->response_state->payload_size = data->_payload_len;
oc_send_separate_response(delay_response, data->code);
