daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import paho.mqtt.client as mqtt
  2.  
  3. def on_publish(client,userdata,result):            
  4.     print("data published \n")
  5.  
  6. client= mqtt.Client("Publisher")                          
  7. client.on_publish = on_publish                          
  8. client.connect("test.mosquitto.org",1883)                                
  9. client.publish(‚ÄĚtopic_example","Hello")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top