Function anjay_lwm2m_gateway_send_batch_data_add_current_multiple_ignore_not_found
Defined in File lwm2m_gateway.h
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
pathsmust 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
NULLanjay – Pointer to Anjay object, MUST NOT be
NULLgateway_iid – End Device Instance ID, MUST NOT be
UINT16_MAXpaths – Pointer to array of anjay_send_resource_path_t .
paths_length – Length of
pathsarray.
- Returns:
0 on success, negative value otherwise. In case of failure, the
builderis left unchanged.