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

View File

@ -47,7 +47,7 @@ class MQTT:
self.client.on_message = self.on_message self.client.on_message = self.on_message
# Establish a connection # Establish a connection
# ceshi-mqtt.lihaink.cn # ceshi-mqtt.lihaink.cn
self.client.connect('127.0.0.1', 1883) self.client.connect('192.168.1.27', 1883)
# Publish a message # Publish a message
self.client.loop_forever(retry_first_connection=True) self.client.loop_forever(retry_first_connection=True)