mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
11 lines
143 B
Python
11 lines
143 B
Python
import mqtt
|
|
|
|
client = mqtt.MQTT('192.168.1.255')
|
|
|
|
client.setHost('broker.emqx.io')
|
|
client.setPort(1883)
|
|
|
|
client.connect()
|
|
|
|
client.disconnect()
|