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.
Outros resultados
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.
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.