diff --git a/pyproject.toml b/pyproject.toml index 05a081b..1da0008 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "0.6.15" +version = "0.6.16" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 592503e..02136bd 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -8,6 +8,7 @@ import time, datetime import getopt, json, shlex, re import logging import requests +from bleak import BleakScanner from pathlib import Path from prompt_toolkit.shortcuts import PromptSession from prompt_toolkit.shortcuts import CompleteStyle @@ -15,6 +16,7 @@ from prompt_toolkit.completion import NestedCompleter from prompt_toolkit.history import FileHistory from prompt_toolkit.formatted_text import ANSI from prompt_toolkit.key_binding import KeyBindings +from prompt_toolkit.shortcuts import radiolist_dialog from meshcore import TCPConnection, BLEConnection, SerialConnection from meshcore import MeshCore, EventType, logger @@ -1265,6 +1267,8 @@ def usage () : Arguments : -h : prints this help -j : json output + -D : debug + -S : performs a ble scan and ask for device -a
: specifies device address (can be a name) -d