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

Đang mở
#817 0 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
855
Fork
355
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/python

Tất cả issue của meshtastic/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.