<reponame>Atzingen/curso-IoT-2017<filename>aula-10-mqttbroker/mqtt_inicio/publish_mqtt.py<gh_stars>1-10
import paho.mqtt.client as mqtt

client = mqtt.Client()
client.connect('192.168.127.12')

client.publish('teste','ligado')

import paho.mqtt.client as mqtt

client = mqtt.Client()
client.connect('192.168.127.12')

client.publish('teste','ligado')