updated analysis software

This commit is contained in:
ggw
2026-05-11 12:50:35 -07:00
parent 74debab835
commit 19e646286f
3 changed files with 72 additions and 42 deletions
+7 -3
View File
@@ -12,11 +12,15 @@ async def scan():
async def connect(device):
async with BleakClient(device) as client:
value = b'6'
await client.write_gatt_char(TX_UUID, value, 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.stop_notify(RX_UUID)
await client.start_notify(RX_UUID, cb)
await asyncio.sleep(10000)
await asyncio.sleep(60)
#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)
#await asyncio.sleep(5)
RX_UUID = "00000001-8E22-4541-9D4C-21EDAE82ED19"
TX_UUID = "00000000-8E22-4541-9D4C-21EDAE82ED19"