Project developed for the module 9 at INTELI.
A simple IoT simulator that uses MQTT protocol to send and receive messages from a broker. The simulator is capable of simulating the SPS30 sensor, which measures the concentration of particles in the air. The project use the MongoDB database to store the data and Kafka with HiveMQ integration to send the data to the broker.
- Clone the repository
git clone [email protected]:ViniciosLugli/IoT-mqtt-simulator.git
- Navigate to the project's root directory
cd IoT-mqtt-simulator
- Copy the
.env.template
file to.env
and fill in the environment variables
Compile and run the project, you only need to run the docker environment, and all the services will be up and running.
docker compose up
To run the tests, you need to have the broker of the environment variable running and rust installed. Just go to the root directory and run the following command:
cargo test
The test sources are located in the directory of the files they are testing:
demo.mp4
This project is protected under the GNU General Public License v3.0 License.