To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.
Folow this guide to setup ssh server.
To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.
Folow this guide to setup ssh server.
#!/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): |