Function anjay_send_batch_data_add_current_multiple

Function Documentation

int anjay_send_batch_data_add_current_multiple(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().

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.