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

Aperta
#777 1 commento 3 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli, networking

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Python
Stelle
855
Fork
355
Merge medio
3g 3h
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di meshtastic/python

Tutte le issue di meshtastic/python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.