update
This commit is contained in:
parent
a83ddc66ae
commit
c69ee4e528
2
MQTT.py
2
MQTT.py
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue