37#ifndef PROTOCORE_SENML_H
38#define PROTOCORE_SENML_H
42#if PROTOCORE_ENABLE_SENML
49#define PROTOCORE_SENML_RESOLVED_NAME_MAX 96
67 const char *base_name;
72 SenmlValueKind value_kind;
74 const char *string_value;
85 char name[PROTOCORE_SENML_RESOLVED_NAME_MAX];
87 SenmlValueKind value_kind;
89 const char *string_value;
98 const SenmlRecord *records;
149 SenmlBinaryArgs binary;
150 SenmlResolvedArgs resolved;
156extern SenmlVars SenmlV;
161 void (*
const json_build)(uint8_t *work);
162 void (*
const binary_build)(uint8_t *work);
163 void (*
const resolve)(uint8_t *work);
168void protocore_senml_json_build(uint8_t *work);
169void protocore_senml_binary_build(uint8_t *work);
170void protocore_senml_resolve(uint8_t *work);
176static const SenmlNs Senml __attribute__((unused)) = {
177 .json_build = protocore_senml_json_build,
178 .binary_build = protocore_senml_binary_build,
179 .resolve = protocore_senml_resolve,
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
One binary codec interface; a wire encoding is an instance of it.
A wire encoding: the ten writes, the peek, and the nine reads.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS