#!/usr/bin/env python """ Send data as an MQTT-Client via python and being used to be integrated in other scripts Andreas Link, 11.2016 """ import paho.mqtt.client as mqttcl MQTTdata="Hello World" client = mqttcl.Client('Python-TestClient1') client.connect('192.168.0.253') client.publish('test/example', MQTTdata) client.disconnect()