10#ifndef ANJAY_INCLUDE_ANJAY_LWM2M_SEND_H
11#define ANJAY_INCLUDE_ANJAY_LWM2M_SEND_H
50# define ANJAY_SEND_DEFERRED_ERROR (-3)
58# define ANJAY_SEND_ABORT (-2)
66# define ANJAY_SEND_TIMEOUT (-1)
72# define ANJAY_SEND_SUCCESS 0
181 avs_time_real_t timestamp,
192 avs_time_real_t timestamp,
203 avs_time_real_t timestamp,
214 avs_time_real_t timestamp,
246 avs_time_real_t timestamp,
279 avs_time_real_t timestamp,
312 avs_time_real_t timestamp,
356 size_t paths_length);
378 size_t paths_length);
513 void *finished_handler_data);
547 void *finished_handler_data);
uint16_t anjay_oid_t
Definition core.h:1182
uint16_t anjay_rid_t
Definition core.h:1188
uint16_t anjay_iid_t
Definition core.h:1185
struct anjay_struct anjay_t
Definition core.h:45
uint16_t anjay_ssid_t
Definition core.h:31
uint16_t anjay_riid_t
Definition core.h:1191
int anjay_send_batch_add_bool(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, bool value)
struct anjay_send_batch_builder_struct anjay_send_batch_builder_t
Definition lwm2m_send.h:21
anjay_send_batch_t * anjay_send_batch_builder_compile(anjay_send_batch_builder_t **builder)
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)
int anjay_send_batch_data_add_current(anjay_send_batch_builder_t *builder, anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid)
int anjay_send_batch_add_int(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, int64_t value)
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)
struct anjay_send_batch_struct anjay_send_batch_t
Definition lwm2m_send.h:23
anjay_send_result_t
Definition lwm2m_send.h:419
@ ANJAY_SEND_ERR_PROTOCOL
Definition lwm2m_send.h:460
@ ANJAY_SEND_ERR_MUTED
Definition lwm2m_send.h:434
@ ANJAY_SEND_ERR_UNSUPPORTED
Definition lwm2m_send.h:425
@ ANJAY_SEND_ERR_BOOTSTRAP
Definition lwm2m_send.h:447
@ ANJAY_SEND_ERR_OFFLINE
Definition lwm2m_send.h:441
@ ANJAY_SEND_ERR_INTERNAL
Definition lwm2m_send.h:466
@ ANJAY_SEND_OK
Definition lwm2m_send.h:420
@ ANJAY_SEND_ERR_SSID
Definition lwm2m_send.h:454
void anjay_send_finished_handler_t(anjay_t *anjay, anjay_ssid_t ssid, const anjay_send_batch_t *batch, int result, void *data)
Definition lwm2m_send.h:96
int anjay_send_batch_add_uint(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, uint64_t value)
anjay_send_batch_t * anjay_send_batch_acquire(const anjay_send_batch_t *batch)
void anjay_send_batch_release(anjay_send_batch_t **batch)
anjay_send_batch_builder_t * anjay_send_batch_builder_new(void)
void anjay_send_batch_builder_cleanup(anjay_send_batch_builder_t **builder)
anjay_send_result_t anjay_send(anjay_t *anjay, anjay_ssid_t ssid, const anjay_send_batch_t *data, anjay_send_finished_handler_t *finished_handler, void *finished_handler_data)
int anjay_send_batch_add_double(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, double value)
int anjay_send_batch_add_bytes(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, const void *data, size_t length)
anjay_send_result_t anjay_send_deferrable(anjay_t *anjay, anjay_ssid_t ssid, const anjay_send_batch_t *data, anjay_send_finished_handler_t *finished_handler, void *finished_handler_data)
int anjay_send_batch_add_string(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, const char *str)
int anjay_send_batch_add_objlnk(anjay_send_batch_builder_t *builder, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, avs_time_real_t timestamp, anjay_oid_t objlnk_oid, anjay_iid_t objlnk_iid)
Definition lwm2m_send.h:31
anjay_iid_t iid
Definition lwm2m_send.h:33
anjay_oid_t oid
Definition lwm2m_send.h:32
anjay_rid_t rid
Definition lwm2m_send.h:34