mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
Merge pull request #21 from kyriazis/gk/fix-bleak-client
Correctly use client in BLEConnection
This commit is contained in:
@@ -52,7 +52,7 @@ class BLEConnection:
|
||||
if self.client:
|
||||
logger.debug("Using pre-configured BleakClient.")
|
||||
assert isinstance(self.client, BleakClient)
|
||||
if client.is_connected :
|
||||
if self.client.is_connected :
|
||||
logger.error("Client is already connected !!! weird")
|
||||
self.address = self.client.address
|
||||
return self.address
|
||||
|
||||
Reference in New Issue
Block a user