# mqtt-study **Repository Path**: mazpy/mqtt-study ## Basic Information - **Project Name**: mqtt-study - **Description**: Python 实现 MQTT 通信 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-30 - **Last Updated**: 2025-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 依赖 ``` pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple pika ``` ## RabbitMQ 后台 http://10.0.106.15:15672 账号:root 密码:找管理员要 ## 01.publish.py 发布数据到服务器,执行命令: ``` python 01.publish.py ``` 服务器查看消息: ![pub1](./image/RabbitMQ1.png) ![pub2](./image/RabbitMQ2.png) ## 02.subscribe.py 订阅 01.publish.py 发布的消息,两个程序没有先后执行顺序。 ![sub](./image/Subscribe.png)