mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
fix addr check
This commit is contained in:
parent
fe43c14e81
commit
9808fc5c33
1 changed files with 2 additions and 2 deletions
|
|
@ -2217,10 +2217,10 @@ async def main(argv):
|
|||
mc = await MeshCore.create_serial(port=serial_port, baudrate=baudrate, debug=debug, only_error=json_output)
|
||||
else : #connect via ble
|
||||
client = None
|
||||
if device or address and address.split(":") == 6 :
|
||||
if device or address and len(address.split(":")) == 6 :
|
||||
pass
|
||||
elif address and len(address) == 36 and len(address.split("-") == 5):
|
||||
client = BleakClient(address)
|
||||
client = BleakClient(address) # mac uses uuid, we'll pass a client
|
||||
else:
|
||||
logger.info(f"Scanning BLE for device matching {address}")
|
||||
devices = await BleakScanner.discover(timeout=timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue