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

Ouverte
#817 0 commentaires 4 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
python
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
855
Forks
355
Merge moyen
3 j 3 h
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de meshtastic/python

Toutes les issues de meshtastic/python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.