Advertisement
Guest User

Untitled

a guest
May 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def on_message(client, userdata, msg):
  2. print(msg.topic+" "+str( msg.payload))
  3. running = False
  4. if msg.topic == 'signal':
  5. if ( msg.payload == b'action' or msg.payload == b'hello world' ) and running == False:
  6. running = True
  7. record()
  8. running = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement