CLI "-b" and "--ble" options do NOT terminate after operation completed

Aperta
#817 0 commenti 4 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

The bug is in the BLE connection path of the CLI, so start by reproducing it with the -b option and a BLE node. Compare it with the serial path (--port), which does exit, to find where the BLE connection is opened and where the CLI should close it after --sendtext or --info finish. Done when the process exits on its own after each command, and the serial behaviour is unchanged.

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

Descrizione

Using V2.7.1 meshtastic on Linux, doing operations such as

meshtastic -b Meshtastic_0b88 --ch-index 0 --sendtext "Ping!"

or

meshtastic -b Meshtastic_0b88 --no-nodes --info

sends the message or gets the info, but meshtastic REMAINS connected to the node. It does not terminate (as one would expect it to). The only way out is a CTRL-C. This behavior does NOT occur when using serial connections ("--port" or "--serial" or "-s"). It terminates after the operation as one would expect. I have not tried it via HTTP/HTTPS.

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.