mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
add an error when serial connexion is not made to suggest trying -r
This commit is contained in:
parent
5bc8379b52
commit
69ad8250fe
1 changed files with 2 additions and 0 deletions
|
|
@ -4436,6 +4436,8 @@ async def main(argv):
|
|||
mc = await MeshCore.create_tcp(host=hostname, port=port, debug=debug, only_error=json_output)
|
||||
elif not serial_port is None : # connect via serial port
|
||||
mc = await MeshCore.create_serial(port=serial_port, baudrate=baudrate, debug=debug, only_error=json_output)
|
||||
if mc is None: # did not connect
|
||||
logger.error("To connect to a repeater, use -r option.")
|
||||
elif BLEAK_AVAILABLE : # connect via ble
|
||||
client = None
|
||||
if device or address and len(address.split(":")) == 6 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue