Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
olvidalo committed Nov 23, 2024
1 parent 08ec7bf commit bb213d3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bt_controller_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
from PyQt6.QtCore import QObject, pyqtSignal, QEventLoop
from PyQt6.QtWidgets import QApplication

try:
from bleak import BleakClient, BleakGATTCharacteristic, BleakError
BLEAK_AVAILABLE = True
except ImportError:
# 'bleak' is not installed; set BLEAK_AVAILABLE to False
BLEAK_AVAILABLE = False
from bleak import BleakClient, BleakGATTCharacteristic, BleakError

class BtControllerCommand(Enum):
LED_ON = 0x01
Expand Down Expand Up @@ -45,8 +40,6 @@ def __init__(self, command: BtControllerCommand, param: int = None):

class BtControllerController(QObject):

BLEAK_AVAILABLE = BLEAK_AVAILABLE

DEVICE_NAME = "CCeH Dome Controller"
DEVICE_ADDRESS = "00:0E:0B:10:45:63"
BLE_CHARACTERISTIC_UUID = "0000ffe1-0000-1000-8000-00805f9b34fb"
Expand Down

0 comments on commit bb213d3

Please sign in to comment.