SenML common record attributes. More...
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.
#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. | |
senml_numeric_t senml_attr_t::base_sum |
senml_numeric_t senml_attr_t::base_time |
senml_unit_t senml_attr_t::base_unit |
senml_numeric_t senml_attr_t::base_value |
uint64_t senml_attr_t::base_version |
senml_numeric_t senml_attr_t::sum |
senml_numeric_t senml_attr_t::time |
senml_unit_t senml_attr_t::unit |
senml_numeric_t senml_attr_t::update_time |