37#ifndef PROTOCORE_SENML_H
38#define PROTOCORE_SENML_H
42#if PROTOCORE_ENABLE_SENML
49#define PROTOCORE_SENML_RESOLVED_NAME_MAX 96
66 const char *base_name;
67 embed_bool has_base_time;
71 SenmlValueKind value_kind;
73 const char *string_value;
74 embed_bool boolean_value;
84 char name[PROTOCORE_SENML_RESOLVED_NAME_MAX];
86 SenmlValueKind value_kind;
88 const char *string_value;
89 embed_bool boolean_value;
97 const SenmlRecord *records;
148 SenmlBinaryArgs binary;
149 SenmlResolvedArgs resolved;
155extern SenmlVars SenmlV;
160 void (*
const json_build)(uint8_t *work);
161 void (*
const binary_build)(
const uint8_t *work);
162 void (*
const resolve)(
const uint8_t *work);
167void protocore_senml_json_build(uint8_t *work);
168void protocore_senml_binary_build(
const uint8_t *work);
169void protocore_senml_resolve(
const uint8_t *work);
175static const SenmlNs Senml __attribute__((unused)) = {
176 .json_build = protocore_senml_json_build,
177 .binary_build = protocore_senml_binary_build,
178 .resolve = protocore_senml_resolve,
EMBED_ENUM_BYTE(ProtoConn, PROTO_NONE=0, PROTO_HTTP=1, PROTO_TELNET=2, PROTO_SSH=3, PROTO_MODBUS=4, PROTO_OPCUA=5, PROTO_SSH_RFWD=6, PROTO_RELAY=7, PROTO_BRIDGE=8, PROTO_NTRIP_CASTER=9, PROTO_MESH=10, PROTO_UDP=11,)
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.