Adding refactored classes for ble sensing with working data collection again
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from kano_wand.constants import *
|
||||
|
||||
async def start_notify(client, notification_handler):
|
||||
for char in CHARACTERISTIC_UUIDS.keys():
|
||||
await client.start_notify(char, notification_handler)
|
||||
|
||||
|
||||
async def stop_notify(client):
|
||||
for char in CHARACTERISTIC_UUIDS.keys():
|
||||
await client.stop_notify(char)
|
||||
|
||||
def chunker(seq, size):
|
||||
return (seq[pos:pos + size] for pos in range(0, len(seq), size))
|
||||
Reference in New Issue
Block a user