随笔分类 - mqtt
摘要:import paho.mqtt.client as mqttimport timeMQTTHOST = "192.168.0.4"MQTTPORT = 1883mqttClient = mqtt.Client() # 连接MQTT服务器def on_mqtt_connect(): mqttClie
阅读全文
摘要:官方参考文档:https://docs.emqx.com/zh/cloud/latest/connect_to_deployments/python_sdk.html 参考文档:https://zhuanlan.zhihu.com/p/187481769 发布消息 首先定义一个 while 循环语句
阅读全文