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