I wrote an encoder based on the pythonSDK test_encode_activity_recipe.py. It seemed to work well except for the weight key like below:
mesgs.append({
'mesg_num': Profile['mesg_num']['WEIGHT_SCALE'],
'timestamp': scale_date,
'weight': 8400, #decoding issue?
'muscle_mass': 66.0,
})CodeThe 'weight' is a weight type and supposed to be in kilograms; however, it seems to scale incorrectly (8400 instead of 84.0kg). The other keys that use mass (eg/ muscle_mass) all convert from to kilograms okay when uploading the FIT file to Connect. Perhaps it's a type weight vs type unit16 issue? Thoughts?
Thanks!
PS Hopefully I'm writing this in the correct place, apologies if not.