fixxed imports, added state.py
This commit is contained in:
@@ -30,6 +30,8 @@ def init_bluetooth():
|
||||
logger.info("Bluetooth-Komponenten initialisiert (Advertiser + Tracer)")
|
||||
# Hier ggf. weitere Initialisierung (z. B. hci0 prüfen)
|
||||
|
||||
from app.state import current_device, current_module, current_hub
|
||||
|
||||
def connection_monitor():
|
||||
"""
|
||||
Background-Thread: Prüft alle 5 Sekunden, ob der Hub noch antwortet.
|
||||
|
||||
Reference in New Issue
Block a user