Created
May 24, 2018 03:31
-
-
Save anoop4real/cb5f10d6e089f3596305c51781541e08 to your computer and use it in GitHub Desktop.
Python files for Raspberry Pi MQTT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import paho.mqtt.publish as publish | |
| MQTT_SERVER = "localhost" | |
| MQTT_PATH = "test_channel" | |
| publish.single(MQTT_PATH, "This is a response from Raspberry Pi", hostname=MQTT_SERVER) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment