Remove deep-scan command
FreakWAN nodes only uses UART, no need to scan for specific services.
This commit is contained in:
parent
50c90e0a59
commit
f7328397b0
17
README.md
17
README.md
|
@ -53,7 +53,6 @@ Options:
|
|||
--help Show this message and exit.
|
||||
|
||||
Commands:
|
||||
deep-scan Scan to find services of a specific device.
|
||||
gui Start freakble GUI.
|
||||
repl Start a REPL with the device.
|
||||
scan Scan to find BLE devices.
|
||||
|
@ -133,22 +132,6 @@ AF:AF:AF:AF:AF:AF (RSSI=-57): FreakWAN_vuzasu
|
|||
|
||||
Please note that the address are *invented*.
|
||||
|
||||
### deep-scan
|
||||
|
||||
The `deep-scan` command is used to find services of a specific device.
|
||||
|
||||
```
|
||||
Usage: freakble deep-scan [OPTIONS]
|
||||
|
||||
Scan to find services of a specific device.
|
||||
|
||||
Options:
|
||||
--device TEXT ble device address [required]
|
||||
--scan-time FLOAT scan duration [default: (5 secs)]
|
||||
--help Show this message and exit.
|
||||
|
||||
```
|
||||
|
||||
### repl
|
||||
|
||||
The `repl` command connects to the specified device and stats an interactive
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
import logging
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
import asyncclick as click
|
||||
|
||||
|
@ -91,27 +90,6 @@ async def scan(ctx, scan_time, service_uuid):
|
|||
scanner.print_list(devices)
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.option(
|
||||
"--device",
|
||||
required=True,
|
||||
type=str,
|
||||
envvar="FREAKBLE_DEVICE",
|
||||
help="ble device address",
|
||||
)
|
||||
@click.option(
|
||||
"--scan-time", default=5, show_default="5 secs", type=float, help="scan duration"
|
||||
)
|
||||
@click.pass_context
|
||||
async def deep_scan(ctx, device, scan_time):
|
||||
"""Scan to find services of a specific device."""
|
||||
devices = await scanner.scan(ctx.obj["ADAPTER"], scan_time, None)
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter(action="ignore", category=FutureWarning)
|
||||
services = await scanner.deep_scan(device, devices)
|
||||
scanner.print_details(services)
|
||||
|
||||
|
||||
@cli.command()
|
||||
@click.option(
|
||||
"--device",
|
||||
|
|
Loading…
Reference in a new issue