Lors de cet atelier, vous allez en apprendre plus sur Pub/Sub et découvrir comment créer un sujet et un abonné à l'aide d'un script Python, puis publier et afficher des messages.
Skip this video In this lab, you learn about Pub/Sub and how to create a topic and subscriber with a Python script, and then publish and view messages.
Other results
Si votre Arduino est encore connecté à votre PC, puis démarrez le script Python pour récupérer votre hitcounter (à partir d'une invite de commande)
If your Arduino is still attached to your PC, then start the Python script to fetch your hitcounter (from a command prompt)
Nous allons écrire un petit script Python qui commencera par configurer la GPIO 5 en sortie, puis la passera à l'état haut, ce qui aura pour effet de fermer le relais. sys.exit(0)
We're going to write a small Python script that will start by setting GPIO 5 to output mode, then pull it high, which will close the relay.
Voir Introduction au langage Python pour en savoir plus sur le langage de programmation Python, puis sur Tutoriel sur les scripts Python et sur Débuter avec les scripts pour en savoir plus sur l'écriture de macros.
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.