CLI with "-ble" option and device name should not need to do a full scan for every command

Offen
#777 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
cli, networking

Rechercherichtung

The --ble option is parsed in the CLI entry point, and the connection path that always runs a full BLE scan is in the BLE interface code. Read how a device name is resolved to an address there, then decide whether a cached identifier can skip the scan. The issue asks a question rather than specifying a change, so the design needs a maintainer decision first. Done means a named device connects without a full scan, with a test or manual check against a device.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

If I'm providing the device name after "--ble" why does every CLI invocation force another full ten-second BLE scan?

Is there some way to return some identifier from the initial scan that is usable as-is without forcing a full scan for every subsequent CLI command?

Vorherrschende Sprache
Python
Sterne
855
Forks
355
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
12

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus meshtastic/python

Alle Issues in meshtastic/python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.