Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def on_message(client, userdata, msg):
- print(msg.topic+" "+str( msg.payload))
- running = False
- if msg.topic == 'signal':
- if ( msg.payload == b'action' or msg.payload == b'hello world' ) and running == False:
- running = True
- record()
- running = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement