From b8a8ee40a3e4c230816d881d9d9651eaac422ab3 Mon Sep 17 00:00:00 2001 From: wes-johnson Date: Mon, 12 May 2025 15:06:16 -0700 Subject: [PATCH] [#185] Modified datatype in the Sparkplug payload definition to use the DataType enumeration in the proto file --- .../src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc b/specification/src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc index 558fdd7..da6ed7f 100644 --- a/specification/src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc +++ b/specification/src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc @@ -300,7 +300,7 @@ message Payload { optional string name = 1; // Metric name - Required in BIRTH messages, optional in DATA messages if using aliases optional uint64 alias = 2; // Metric alias - tied to name on BIRTH and included in all later DATA messages optional uint64 timestamp = 3; // Timestamp associated with data acquisition time - if omitted, the overall payload timestamp is assumed as the data acquisition time - optional uint32 datatype = 4; // DataType of the metric/tag value + optional DataType datatype = 4; // DataType of the metric/tag value optional string source = 5; // Source for CMD messages if unique to the Metric (typically for forwarded writes in CMD messages) optional bool is_historical = 6; // If this is historical data and should not update real time tag optional bool is_transient = 7; // Tells consuming clients such as MQTT Engine to not store this as a tag