Skip to content

zhangj167/MQTT

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 10, 2024
Jun 14, 2024

MQTT Project of Temperature and Humidity Monitoring

Installation Guide

Install Docker

Please ensure Docker is installed. You can download and install Docker from the official Docker website.

Install and Start Services

Install and Start EMQX MQTT Server

Use the following command to pull and start the EMQX MQTT server Docker container:

docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 emqx/emqx

Install MySQL Server

Use the following command to pull and start the MySQL server Docker container:

docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=root -p 5002:3306 -d mysql:5.7

Install Python Dependencies

Please ensure Python 3 is installed. You can download and install Python from the official Python website. Use the following commands to install the necessary Python dependencies:

pip3 install paho-mqtt
pip3 install pymysql
pip3 install flask
pip install flask-socketio

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published