Loading...
Searching...
No Matches
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.
 

Field Documentation

◆ base_name

const char* senml_attr_t::base_name

Base Name.

Definition at line 240 of file senml.h.

◆ base_sum

senml_numeric_t senml_attr_t::base_sum

Base Sum, set CONFIG_SENML_ATTR_SUM to 1 to enable.

Definition at line 245 of file senml.h.

◆ base_time

senml_numeric_t senml_attr_t::base_time

Base Time.

Definition at line 241 of file senml.h.

◆ base_unit

senml_unit_t senml_attr_t::base_unit

Base Unit.

Definition at line 242 of file senml.h.

◆ base_value

senml_numeric_t senml_attr_t::base_value

Base Value.

Definition at line 243 of file senml.h.

◆ base_version

uint64_t senml_attr_t::base_version

Base Version, set CONFIG_SENML_ATTR_VERSION to 1 to enable.

Definition at line 248 of file senml.h.

◆ name

const char* senml_attr_t::name

Name of the measurement.

Definition at line 250 of file senml.h.

◆ sum

senml_numeric_t senml_attr_t::sum

Sum, set CONFIG_SENML_ATTR_SUM to 1 to enable.

Definition at line 253 of file senml.h.

◆ time

senml_numeric_t senml_attr_t::time

Time of the measurement (relative or Unix) in seconds.

Definition at line 255 of file senml.h.

◆ unit

senml_unit_t senml_attr_t::unit

Unit.

Definition at line 251 of file senml.h.

◆ update_time

senml_numeric_t senml_attr_t::update_time

Maximum time before the next sensor value, set CONFIG_SENML_ATTR_UPDATE_TIME to 1 to enable.

Definition at line 257 of file senml.h.


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