Skip to content

Instantly share code, notes, and snippets.

View talkleasy's full-sized avatar

Andrew Cox talkleasy

View GitHub Profile
@anoop4real
anoop4real / subscriber.py
Created May 24, 2018 03:32
python mqtt subscriber
import paho.mqtt.client as mqtt
import lcddriver
import time
lcd = lcddriver.lcd()
MQTT_SERVER = "localhost"
MQTT_PATH = "test_channel"
# The callback for when the client receives a CONNACK response from the server.