The analog_input value type will include up to two decimal places of any floating-point value that's stored in it. Currently the decoder only returns integers, and so throws away the decimal part of any value.
For example, if I encode (in micropython on a pycom board:
Changing the 100 in analog_input_output in methods.py to 100.0 seems to fix things. (Presumably there'll be similar issues in other methods like temperature, humidty, etc., but I've not tested those)
(It's not causing any issues for me, but I figured I should report it so you're aware of it)
The
analog_input
value type will include up to two decimal places of any floating-point value that's stored in it. Currently the decoder only returns integers, and so throws away the decimal part of any value.For example, if I encode (in micropython on a pycom board:
Then the resulting buffer is
'010230390202cfc6'
Passing that into
decode
I get:Changing the
100
inanalog_input_output
inmethods.py
to100.0
seems to fix things. (Presumably there'll be similar issues in other methods liketemperature
,humidty
, etc., but I've not tested those)(It's not causing any issues for me, but I figured I should report it so you're aware of it)