This commit is contained in:
xyj 2023-12-05 17:06:09 +08:00
parent a5e3ec951c
commit a83ddc66ae
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if __name__ == '__main__':
client.on_connect = on_connect
client.on_connect_fail = on_connect_fail
# Establish a connection
client.connect('127.0.0.1', 1883)
client.connect('192.168.1.27', 1883)
# Publish a message
client.loop_forever()
except Exception as e: