readGPIOs function

Aberta
#775 7 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
25/100
Tipo de issue
Documentação
Clareza
Precisa de esclarecimento
Status de atividade
Pouca atividade
Stack de tecnologia
embedded-iot, python
Domínio
api, embedded-iot

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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?

Linguagem predominante
Python
Estrelas
855
Forks
355
Merge médio
3d 3h
PRs com merge (30d)
12

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de meshtastic/python

Todas as issues de meshtastic/python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.