Skip to content

Instantly share code, notes, and snippets.

View yagneshshinde's full-sized avatar

Yagnesh Shinde yagneshshinde

  • Matrix Comsec Pvt. Ltd.
  • Vadodara, Gujarat, India
View GitHub Profile
#!/usr/bin/env python
import paho.mqtt.client as mqtt
import RPi.GPIO as GPIO
def on_connect(client, userdata, rc):
#print ("Connected with rc: " + str(rc))
client.subscribe("kwf/demo/led")
def on_message(client, userdata, msg):