updated analsysi
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user