Anjay Lite
Loading...
Searching...
No Matches
anj_io_out_entry_struct Struct Reference

#include <defs.h>

Data Fields

anj_data_type_t type
 
anj_res_value_t value
 
anj_uri_path_t path
 
double timestamp
 

Detailed Description

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

Field Documentation

◆ path

Path of the affected Resource (see anj_uri_path_t).

◆ timestamp

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.

◆ type

Data type of this entry (see anj_data_type_t).

◆ value

Value of the entry (see anj_res_value_t).


The documentation for this struct was generated from the following file: