Skip to content

Instantly share code, notes, and snippets.

@pedrogk
Last active July 2, 2016 01:35
Show Gist options
  • Save pedrogk/9fee1c85ceafb9289f4633c331edc862 to your computer and use it in GitHub Desktop.
Save pedrogk/9fee1c85ceafb9289f4633c331edc862 to your computer and use it in GitHub Desktop.
import paho.mqtt.publish as publish
import time
print(“Enviando 0...")
publish.single("ledStatus", "0", hostname=“tuserver”)
time.sleep(3)
print(“Enviando 1...")
publish.single("ledStatus", "1", hostname=“tuserver”)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment