Struct anj_io_out_entry_struct

Struct Documentation

struct anj_io_out_entry_struct

Data structure representing a single entry produced by the data model.

Public Members

anj_data_type_t type

Data type of this entry (see anj_data_type_t).

anj_res_value_t value

Value of the entry (see anj_res_value_t).

anj_uri_path_t path

Path of the affected Resource (see anj_uri_path_t).

double timestamp

Optional timestamp associated with this entry.

This field is only used in Send and Notify operations, and only when the message is encoded using a SenML-based content format (SenML JSON or SenML CBOR).

  • If set to NaN (recommended default), no timestamp is included in the payload.

  • If set to a non-NaN value:

    • A non-negative value represents an absolute Unix timestamp in seconds. For interoperability, values >= 2^28 seconds (per RFC8428) are interpreted as absolute time.

    • A negative value represents a relative time offset (in seconds) from the current time.

For all other LwM2M operations and for non-SenML content formats, this field is ignored.