senml_attr_t Struct Reference

SenML common record attributes. More...

Detailed Description

SenML common record attributes.

All of these values are optional: empty or 0 values will not be encoded. Note that some attributes need to be enabled explicitly.

Definition at line 239 of file senml.h.

#include <senml.h>

Data Fields

const char * base_name
 Base Name.
 
senml_numeric_t base_time
 Base Time.
 
senml_unit_t base_unit
 Base Unit.
 
senml_numeric_t base_value
 Base Value.
 
senml_numeric_t base_sum
 Base Sum, set CONFIG_SENML_ATTR_SUM to 1 to enable.
 
uint64_t base_version
 Base Version, set CONFIG_SENML_ATTR_VERSION to 1 to enable.
 
const char * name
 Name of the measurement.
 
senml_unit_t unit
 Unit.
 
senml_numeric_t sum
 Sum, set CONFIG_SENML_ATTR_SUM to 1 to enable.
 
senml_numeric_t time
 Time of the measurement (relative or Unix) in seconds.
 
senml_numeric_t update_time
 Maximum time before the next sensor value, set CONFIG_SENML_ATTR_UPDATE_TIME to 1 to enable.
 

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