Fix bug in mqtt sender python script

This commit is contained in:
root 2018-08-04 23:41:38 +08:00
parent f0fc433954
commit f1cfe8f1c1

View file

@ -44,7 +44,7 @@ def sigint_handler(signal, frame):
sys.exit(0)
def main:
def main():
client = mqtt.Client()
client.on_connect = on_connect
client.on_publish = on_publish