Description:
Polar Flow (Android and Windows) reports an OH1 firmware version of 2.1.20. Running the following Python script using Bleak gives me 1.3.9. Why?
#!/usr/bin/env python3
import asyncio
from bleak import BleakClient
from bleak.uuids import uuid16_dict
uuid16_dict = {v: k for k, v in uuid16_dict.items()}
## UUID for firmware revision ##
FIRMWARE_REVISION_UUID = "0000{0:x}-0000-1000-8000-00805f9b34fb".format(
uuid16_dict.get("Firmware Revision String")
)
async def main(address):
async with BleakClient(address) as client:
firmware_revision = await client.read_gatt_char(FIRMWARE_REVISION_UUID)
print("Firmware Revision: {0}".format("".join(map(chr, firmware_revision))))
if __name__ == "__main__":
asyncio.run(main("A0:9E:1A:C4:ED:97"))
Platform your question concerns:
Device:
Description: Polar Flow (Android and Windows) reports an OH1 firmware version of 2.1.20. Running the following Python script using Bleak gives me 1.3.9. Why?