Files
kano-wand-smarthome/kano-wand-2/constants.py
T
Lucas Oskorep 5df2dd6b47 Refactoring Code to mesh with the architecture set by https://github.com/GammaGames/kano_wand
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.
2020-02-11 16:29:03 -06:00

38 lines
1.3 KiB
Python

from enum import Enum
class INFO(Enum):
"""Enum containing info UUIDs"""
SERVICE = '64A70010-F691-4B93-A6F4-0968F5B648F8'
ORGANIZATION_CHAR = '64A7000B-F691-4B93-A6F4-0968F5B648F8'
SOFTWARE_CHAR = '64A70013-F691-4B93-A6F4-0968F5B648F8'
HARDWARE_CHAR = '64A70001-F691-4B93-A6F4-0968F5B648F8'
class IO(Enum):
"""Enum containing _IO UUIDs"""
SERVICE = '64A70012-F691-4B93-A6F4-0968F5B648F8'
BATTERY_CHAR = '64A70007-F691-4B93-A6F4-0968F5B648F8'
USER_BUTTON_CHAR = '64A7000D-F691-4B93-A6F4-0968F5B648F8'
VIBRATOR_CHAR = '64A70008-F691-4B93-A6F4-0968F5B648F8'
LED_CHAR = '64A70009-F691-4B93-A6F4-0968F5B648F8'
KEEP_ALIVE_CHAR = '64A7000F-F691-4B93-A6F4-0968F5B648F8'
class SENSOR(Enum):
"""Enum containing sensor UUIDs"""
SERVICE = '64A70011-F691-4B93-A6F4-0968F5B648F8'
TEMP_CHAR = '64A70014-F691-4B93-A6F4-0968F5B648F8'
QUATERNIONS_CHAR = '64A70002-F691-4B93-A6F4-0968F5B648F8'
# RAW_CHAR = '64A7000A-F691-4B93-A6F4-0968F5B648F8'
# MOTION_CHAR = '64A7000C-F691-4B93-A6F4-0968F5B648F8'
MAGN_CALIBRATE_CHAR = '64A70021-F691-4B93-A6F4-0968F5B648F8'
QUATERNIONS_RESET_CHAR = '64A70004-F691-4B93-A6F4-0968F5B648F8'
class PATTERN(Enum):
"""Enum for wand vibration patterns"""
REGULAR = 1
SHORT = 2
BURST = 3
LONG = 4
SHORT_LONG = 5
SHORT_SHORT = 6
BIG_PAUSE = 7