Function anjay_lwm2m_gateway_send_batch_data_add_current_multiple_ignore_not_found

Function Documentation

int anjay_lwm2m_gateway_send_batch_data_add_current_multiple_ignore_not_found(anjay_send_batch_builder_t *builder, anjay_t *anjay, anjay_iid_t gateway_iid, const anjay_send_resource_path_t *paths, size_t paths_length)

Reads value from data model of the End Device (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().

IMPORTANT: All paths must point to the objects of the same End Device.

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

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

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

  • gateway_iid – End Device Instance ID, MUST NOT be UINT16_MAX

  • 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.