update
This commit is contained in:
parent
a5e3ec951c
commit
a83ddc66ae
2
ceshi.py
2
ceshi.py
|
@ -35,7 +35,7 @@ if __name__ == '__main__':
|
||||||
client.on_connect = on_connect
|
client.on_connect = on_connect
|
||||||
client.on_connect_fail = on_connect_fail
|
client.on_connect_fail = on_connect_fail
|
||||||
# Establish a connection
|
# Establish a connection
|
||||||
client.connect('127.0.0.1', 1883)
|
client.connect('192.168.1.27', 1883)
|
||||||
# Publish a message
|
# Publish a message
|
||||||
client.loop_forever()
|
client.loop_forever()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue