File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020
2121class BLEInterface (MeshInterface ):
22- """MeshInterface using BLE to connect to devices"""
22+ """MeshInterface using BLE to connect to devices. """
2323
2424 class BLEError (Exception ):
25- """An exception class for BLE errors"""
25+ """An exception class for BLE errors. """
2626
2727 def __init__ (self , message ):
2828 self .message = message
@@ -54,7 +54,7 @@ def __init__(
5454 logging .debug ("Threads running" )
5555
5656 try :
57- logging .debug (f"BLE connecting to: { address } " )
57+ logging .debug (f"BLE connecting to: { address if address else 'any' } " )
5858 self .client = self .connect (address )
5959 self .state .BLE = True
6060 logging .debug ("BLE connected" )
@@ -178,7 +178,7 @@ class BLEClient:
178178 """Client for managing connection to a BLE device"""
179179
180180 def __init__ (self , address = None , ** kwargs ):
181- self ._eventThread = Thread (target = self ._run_event_loop )
181+ self ._eventThread = Thread (target = self ._run_event_loop , name = "BLEClient" )
182182 self ._eventThread_started = Event ()
183183 self ._eventThread_stopped = Event ()
184184 self ._eventThread .start ()
You can’t perform that action at this time.
0 commit comments