Closed SeppPenner closed 8 months ago
Same for DateTime --> ValueType DateTime (13) is there, but should we store it as ulong
?
There are two layers, the protobuf implementation and the Sparkplug Metric.
The Sparkplug Metric encodes and decodes data to respective protobuf data types. To see this in implementation, take a look at SparkplugBPayloadEncoder.java "setMetricValue(SparkplugBProto.Payload.Metric.Builder metricBuilder,..." and SparkplugBPayloadDecoder.java "getMetricValue(SparkplugBProto.Payload.Metric protoMetric,...". You'll want to look a the "builders" that are invoked as well.
From there, you can see how the Sparkplug Metric types are converted to and from the protobuf layer.
On Thu, Dec 7, 2023 at 8:24 AM HansM @.***> wrote:
Same for DateTime --> ValueType DateTime (13) is there, but should we store it as ulong?
— Reply to this email directly, view it on GitHub https://github.com/eclipse-sparkplug/sparkplug/issues/499#issuecomment-1845647251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEF6AZUIHUPAJHU6IB2XF6TYIHUSBAVCNFSM6AAAAABALKLEQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVGY2DOMRVGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
There are two layers, the protobuf implementation and the Sparkplug Metric. The Sparkplug Metric encodes and decodes data to respective protobuf data types. To see this in implementation, take a look at SparkplugBPayloadEncoder.java "setMetricValue(SparkplugBProto.Payload.Metric.Builder metricBuilder,..." and SparkplugBPayloadDecoder.java "getMetricValue(SparkplugBProto.Payload.Metric protoMetric,...". You'll want to look a the "builders" that are invoked as well. From there, you can see how the Sparkplug Metric types are converted to and from the protobuf layer. … On Thu, Dec 7, 2023 at 8:24 AM HansM @.> wrote: Same for DateTime --> ValueType DateTime (13) is there, but should we store it as ulong? — Reply to this email directly, view it on GitHub <#499 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEF6AZUIHUPAJHU6IB2XF6TYIHUSBAVCNFSM6AAAAABALKLEQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVGY2DOMRVGE . You are receiving this because you are subscribed to this thread.Message ID: @.>
Alright, I will check that. Thank you for the quick reply.
I guess, I can easily work with that. Thank you for the hints.
What do you want to know?
The proto file looks like this:
How do we store a value of type
int32
orint64
/long
(Notuint32
oruint64
/ulong
)? Asfloat
,double
,string
, extension? Seems all akwar to me...Is this related to a Sparkplug Listing request? If so, link the issue from https://github.com/eclipse-sparkplug/sparkplug.listings here.
No response
Version
3.0.0 (Default)
Accept EFTL Terms