updated analsysi

This commit is contained in:
ggw
2026-05-26 08:11:29 -07:00
parent 7d7297b12f
commit 293e7e85a7
3 changed files with 121 additions and 89 deletions
+4 -2
View File
@@ -10,13 +10,15 @@ from packet_parser_helpers import *
async def scan():
return await BleakScanner.find_device_by_name("XX-STM32")
# 2 imu 4 adc 6 ppg
async def connect(device):
async with BleakClient(device) as client:
#await client.write_gatt_char(TX_UUID, b'2', response=True)
await client.write_gatt_char(TX_UUID, b'4', response=True)
await client.write_gatt_char(TX_UUID, b'6', response=True)
#await client.write_gatt_char(TX_UUID, b'6', response=True)
await client.stop_notify(RX_UUID)
await client.start_notify(RX_UUID, cb)
await asyncio.sleep(60)
await asyncio.sleep(600)
#await client.write_gatt_char(TX_UUID, b'2', response=True)
#await client.write_gatt_char(TX_UUID, b'S', response=True)
await client.stop_notify(RX_UUID)