Adding refactored classes for ble sensing with working data collection again

This commit is contained in:
Lucas Oskorep
2019-11-08 18:56:58 -06:00
parent 564eed46d5
commit 40c4e01f55
8 changed files with 112 additions and 92 deletions
+13
View File
@@ -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))