ruuvi / ruuvi-sensor-protocols

46 stars 20 forks source link

Wrong test vector for minimum value for temperature in RAWv2 #30

Closed henkkuli closed 4 years ago

henkkuli commented 4 years ago

The test vector for minimum value has wrong value for the temperature in Data Format 5 Protocol Specification (RAWv2). Currently the specification has the following vector

0x05FFFE000000008001800180010000000000CBB8334C884F

but it should be

0x058001000000008001800180010000000000CBB8334C884F

to encode the minimum value for the temperature. This assumes that the temperature is to be decoded as signed 16 bit integer in MSB order, which is not specified in the document, but can be deduced from the other examples.