atc1441 / ATC_MiThermometer

Custom firmware for the Xiaomi Thermometer LYWSD03MMC and Telink Flasher via USB to Serial converter
2.82k stars 472 forks source link

Advertising is missing the first 4 bytes #13

Closed TheNitek closed 4 years ago

TheNitek commented 4 years ago

I just tried to implement a parser for the native adv. format, but I noticed that the data first 4 bytes seem to be missing. The payload starts with the mac address right away. Firmware version was the latest from this morning.

atc1441 commented 4 years ago

That is correct

The other 4 byte are the length of the data an the service uuid. These are parsed on ble level

https://github.com/atc1441/ATC_MiThermometer#advertising-format-of-the-custom-firmware

Just take the mac as first byte