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

Offen
#817 0 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

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.