Function anjay_send_batch_data_add_current_multiple_ignore_not_found

Function Documentation

int anjay_send_batch_data_add_current_multiple_ignore_not_found(anjay_send_batch_builder_t *builder, anjay_t *anjay, const anjay_send_resource_path_t *paths, size_t paths_length)

Reads values from data model of object anjay (without checking access privileges) and adds them to the builder with the same timestamp for every value. Timestamp is set to avs_time_real_now().

If a resource is not found, it’s ignored, the error isn’t returned and the function adds next resources from the paths.

Parameters:
  • builder – Pointer to batch builder, MUST NOT be NULL

  • anjay – Pointer to Anjay object, MUST NOT be NULL

  • paths – Pointer to array of anjay_send_resource_path_t .

  • paths_length – Length of paths array.

Returns:

0 on success, negative value otherwise. In case of failure, the builder is left unchanged.