5df2dd6b47
Overall - moving from bluez to bleak will give us universal usage, and the rest of the ML side of this project can go on without a hitch.
22 lines
642 B
Python
22 lines
642 B
Python
from enum import Enum
|
|
|
|
BUTTON = 1
|
|
NINE_AXIS = 2
|
|
ACCELEROMETER = 3
|
|
BATTERY = 4
|
|
TEMPERATURE = 5
|
|
MAGNETOMETER = 6
|
|
|
|
RESET_CHAR = "64a70004-f691-4b93-a6f4-0968f5b648f8"
|
|
|
|
CHARACTERISTIC_UUIDS = {
|
|
BUTTON: ("64a7000d-f691-4b93-a6f4-0968f5b648f8"), # Button
|
|
NINE_AXIS: ("64a7000a-f691-4b93-a6f4-0968f5b648f8"), # 9 axis
|
|
ACCELEROMETER: ("64a7000c-f691-4b93-a6f4-0968f5b648f8"), # Accel
|
|
BATTERY: ("64a70007-f691-4b93-a6f4-0968f5b648f8"),
|
|
TEMPERATURE:("64a70014-f691-4b93-a6f4-0968f5b648f8"),
|
|
MAGNETOMETER:("64a70021-f691-4b93-a6f4-0968f5b648f8")
|
|
} # <--- Change to the characteristic you want to enable notifications from.
|
|
|
|
|