readGPIOs function

Ouverte
#775 7 commentaires 0 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é
Une demi-journée
Accessibilité débutants
25/100
Type d'issue
Documentation
Clarté
À clarifier
Activité
Calme
Stack technique
embedded-iot, python
Domaine
api, embedded-iot

Piste de recherche

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.

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

Description

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?

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.