Skip to content

Commit e565db9

Browse files
authored
Merge pull request #550 from wes-johnson/185
[#185] Modified datatype in the Sparkplug payload definition to use the DataType enumeration in the proto file
2 parents eabfbf6 + b8a8ee4 commit e565db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specification/src/main/asciidoc/chapters/Sparkplug_6_Payloads.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ message Payload {
300300
optional string name = 1; // Metric name - Required in BIRTH messages, optional in DATA messages if using aliases
301301
optional uint64 alias = 2; // Metric alias - tied to name on BIRTH and included in all later DATA messages
302302
optional uint64 timestamp = 3; // Timestamp associated with data acquisition time - if omitted, the overall payload timestamp is assumed as the data acquisition time
303-
optional uint32 datatype = 4; // DataType of the metric/tag value
303+
optional DataType datatype = 4; // DataType of the metric/tag value
304304
optional string source = 5; // Source for CMD messages if unique to the Metric (typically for forwarded writes in CMD messages)
305305
optional bool is_historical = 6; // If this is historical data and should not update real time tag
306306
optional bool is_transient = 7; // Tells consuming clients such as MQTT Engine to not store this as a tag

0 commit comments

Comments
 (0)