eclipse-sparkplug / sparkplug

Sparkplug
Eclipse Public License 2.0
109 stars 39 forks source link

Bug Report: Issues with examples in Sparkplug Specification #523

Open luke-shields opened 4 months ago

luke-shields commented 4 months ago

What happened?

The examples for Int8Array is [-23, 123] → [0xEF, 0x7B] which is incorrect, it should be

[-17, 123] → [0xEF, 0x7B]

The example for FloatArray is [1.23, 89.341] → [0x3F, 0x9D, 0x70, 0xA4, 0x42, 0xB2,0xAE, 0x98] which is incorrect, it should be [0xA4, 0x70, 0x9D, 0x3F, 0x98, 0xAE, 0xB2, 0x42]

The example for DoubleArray is [12.354213, 1022.9123213] → [0x40, 0x28, 0xB5, 0x5B, 0x68, 0x05, 0xA2, 0xD7, 0x40, 0x8F, 0xF7, 0x4C, 0x6F, 0x1C, 0x17, 0x8E] which is incorrect, it should be [0xD7, 0xA2, 0x05, 0x68, 0x5B, 0xB5, 0x28, 0x40, 0x8E, 0x17, 0x1C, 0x6F, 0x4C, 0xF7, 0x8F, 0x40]

What is the product or software this issue was discovered with?

3.0

What exact steps need to be performed to reproduce the problem?

N/A

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