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

Aberta
#777 1 comentário 3 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Funcionalidade
Clareza
Precisa de esclarecimento
Status de atividade
Pouca atividade
Stack de tecnologia
python
Domínio
cli, networking

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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?

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.