readGPIOs function

Đang mở
#775 7 bình luận 0 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
Nửa ngày
Mức phù hợp với người mới
25/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
embedded-iot, python
Lĩnh vực
api, embedded-iot

Hướng nghiên cứu

The question is how to get the value returned by readGPIOs(id, mask) in the remote_hardware.py module, which is called after watchGPIOs and writeGPIOs in the snippet. Read those three methods and the response handling around them to see how the GPIO value reaches the caller. Done means the usage is confirmed against the code and a documentation or example change explains how to retrieve the value.

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

Mô tả

Not sure if this should be an issue. I'm trying to get a value back from the readGPIOs(id, mask) function in the remote_hardware.py module. I'm not sure if I'm using it correctly.

iface = MagicMock(autospec=SerialInterface)
rhw = RemoteHardwareClient(iface)

rhc = remote_hardware.RemoteHardwareClient(interface)

destination_node_id = 1128161828
bitmask = 16
value = 1
rhw.watchGPIOs(destination_node_id, bitmask)
rhw.writeGPIOs(destination_node_id, bitmask, value)
rhw.readGPIOs(destination_node_id,bitmask,True)

How do I get the gpio_value from the read function?

Or should I be doing this some other way?

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.