Open bieli opened 8 months ago
After merge https://github.com/bieli/IoText-arduino/issues/6 we have one value issue with decimal values (with correct precission):
Current report after decoding (decimal 1234567890.123
instead of 0.000000
):
Decoded items:
type: t │ name: 2900267526042
type: d │ name: devie_id_x3
type: m │ name: val
╘═══ metric -> type: t, value: txt
type: m │ name: metric_name
╘═══ metric -> type: d, value: 0.000000 <----- HERE IS BUG !
type: m │ name: metric_boolean1
╘═══ metric -> type: b, value: 1
type: m │ name: metric_integer9
╘═══ metric -> type: i, value: 3333
Result after running decode example on device (ESP32):
As you can see, values are empty, what is wrong in comparison to encoded payload (method
get_value_as_str
).