33#include "nanocbor/nanocbor.h"
45 SENML_LABEL_BASE_VERSION = -1,
46 SENML_LABEL_BASE_NAME = -2,
47 SENML_LABEL_BASE_TIME = -3,
48 SENML_LABEL_BASE_UNIT = -4,
49 SENML_LABEL_BASE_VALUE = -5,
50 SENML_LABEL_BASE_SUM = -6,
53 SENML_LABEL_VALUE = 2,
54 SENML_LABEL_STRING_VALUE = 3,
55 SENML_LABEL_BOOLEAN_VALUE = 4,
58 SENML_LABEL_UPDATE_TIME = 7,
59 SENML_LABEL_DATA_VALUE = 8,
62#if IS_ACTIVE(CONFIG_SENML_ATTR_SUM) || defined(DOXYGEN)
int senml_encode_string_cbor(nanocbor_encoder_t *enc, const senml_string_value_t *val)
Encode senml_string_value_t as CBOR.
int senml_encode_sum_cbor(nanocbor_encoder_t *enc, const senml_attr_t *attr)
Encode senml_attr_t containing sum as CBOR.
int senml_encode_value_cbor(nanocbor_encoder_t *enc, const senml_value_t *val)
Encode senml_value_t as CBOR.
int senml_encode_bool_cbor(nanocbor_encoder_t *enc, const senml_bool_value_t *val)
Encode senml_bool_value_t as CBOR.
int senml_encode_data_cbor(nanocbor_encoder_t *enc, const senml_data_value_t *val)
Encode senml_data_value_t as CBOR.
senml_cbor_label_t
SenML CBOR labels.
SenML common record attributes.