Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 507 Bytes

howitworks.rst

File metadata and controls

11 lines (9 loc) · 507 Bytes

How it works

get_char_value function uses the characteristic's name, parsing the respective xml file to get all the value fields. From there it reads the Flags field (if exists) and unpack the bytes accordingly. After that it performs any post-proccesing operation required (e.g. DecimalExponent, Multiplier etc). Finally it packs the result in a dictionary.

To see more about bytes packing/unpacking in python see: struct.