hertzg / metekcity

ETEKCITY smart nutrition scale protocol reverse engneering
MIT License
16 stars 8 forks source link

Data for newer scales #254

Open jefflewis opened 1 year ago

jefflewis commented 1 year ago

I bought this scale on Amazon last week. The data on mine does not match up to the research here. I don't know if I'll open a PR here for some of the documentation, or just link to a new repo with my test data.

I've so far been doing the detection and parsing in Swift, so it wouldn't be a drop in replacement.

Of note: the services are different and the UInt8 data array has a different length and position of values than what I see in the packet package here.

Thanks for the inspiration in this repo! It really help bootstrap me and where to look in the array for the various values and to combine the two UInt8 values for a single UInt16 for the weight value.

hertzg commented 1 year ago

Hi Jeff! Glad you found this useful.

You can use the demo script to run the demo app in the browser and test it.

$ yarn run demo

should do the trick.

Regarding objects not matching, that's most likely due to a newer firmware, I have the old one still and it works like a charm. If you can provide the data samples maybe we can incorportate that version as well.