Function anjay_lwm2m_gateway_send_batch_data_add_current
Defined in File lwm2m_gateway.h
Function Documentation
-
int anjay_lwm2m_gateway_send_batch_data_add_current(anjay_send_batch_builder_t *builder, anjay_t *anjay, anjay_iid_t gateway_iid, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid)
Reads value from data model of the End Device (without checking access privileges) and adds it to the builder with timestamp set to
avs_time_real_now().May possibly add multiple entries if /prefix/oid/iid/rid is a Multiple Resource.
- 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_MAXoid – Object ID, MUST NOT be
UINT16_MAX,0(Security object ID) or21(OSCORE object ID).iid – Instance ID, MUST NOT be
UINT16_MAXrid – Resource ID, MUST NOT be
UINT16_MAX
- Returns:
0 on success, negative value otherwise. In case of failure, the
builderis left unchanged.