|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Sparkplug B payload + topic codec (DETWS_ENABLE_SPARKPLUG) - zero-heap builder for the Eclipse Sparkplug B industrial-IoT MQTT payload (a Protobuf message) and its topic namespace. Builds on the Protobuf codec (services/protobuf) and is published with the MQTT client. More...
#include "ServerConfig.h"Go to the source code of this file.
Sparkplug B payload + topic codec (DETWS_ENABLE_SPARKPLUG) - zero-heap builder for the Eclipse Sparkplug B industrial-IoT MQTT payload (a Protobuf message) and its topic namespace. Builds on the Protobuf codec (services/protobuf) and is published with the MQTT client.
Topic: spBv1.0/<group_id>/<message_type>/<edge_node_id>[/<device_id>], where message_type is NBIRTH / NDEATH / NDATA / DBIRTH / DDEATH / DDATA / STATE.
Payload (Tahu Payload protobuf): timestamp(1), metrics(2, repeated), seq(3), uuid(4), body(5). Each Metric: name(1), alias(2), timestamp(3), datatype(4), and a value in the oneof - int_value(10) / long_value(11) / float_value(12) / double_value(13) / boolean_value(14) / string_value(15). Field numbers + datatype codes verified against the Eclipse Tahu sparkplug_b.proto.
Definition in file sparkplug.h.