Lib for calculate the body composition from data returned from Mi Body Composition Scale
Lib for calculate the body composition from data returned from Mi Body Composition Scale
dotnet add package MiScaleBodyComposition
Install-Package MiScaleBodyComposition
using MiScaleBodyComposition;
var data = new byte[] {2,166,230,7,2,11,17,34,7,186,1,60,55};
var result = new MiScale().GetBodyComposition(data, new User(175, 25, Sex.Male));
Mine Mi Body Composition Scale return 15 bytes long array. Some other versions of scale can return 17 byte long array.
Only last 13 bytes are the important payload:
(source: https://github.com/wiecosystem/Bluetooth/blob/master/doc/devices/huami.health.scale2.md)
https://github.com/lswiderski/mi-scale-exporter