Refactoring code from original POC phase - integers have been decoded roughly successfully so its time to start building a huge library for this bad boy

This commit is contained in:
Lucas Oskorep
2019-11-08 12:58:37 -06:00
parent 48866f6af2
commit 564eed46d5
14 changed files with 223 additions and 246 deletions
+15
View File
@@ -0,0 +1,15 @@
BUTTON = 1
NINE_AXIS = 2
ACCELEROMETER = 3
BATTERY = 4
TEMPERATURE = 5
MAGNETOMETER = 6
CHARACTERISTIC_UUIDS = {
("64a7000d-f691-4b93-a6f4-0968f5b648f8"): BUTTON, # Button
("64a7000a-f691-4b93-a6f4-0968f5b648f8"): NINE_AXIS, # 9 axis
("64a7000c-f691-4b93-a6f4-0968f5b648f8"): ACCELEROMETER, # Accel
("64a70007-f691-4b93-a6f4-0968f5b648f8"): BATTERY,
("64a70014-f691-4b93-a6f4-0968f5b648f8"): TEMPERATURE,
("64a70021-f691-4b93-a6f4-0968f5b648f8"):MAGNETOMETER
} # <--- Change to the characteristic you want to enable notifications from.