Files
kano-wand-smarthome/kano_wand/constants.py
T
2019-11-09 21:09:27 -06:00

18 lines
617 B
Python

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.