Skip to content

ViniciosLugli/IoT-mqtt-simulator

Repository files navigation

project-logo

IoT MQTT Simulator

Project developed for the module 9 at INTELI.

license repo-top-language


Overview

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.

Getting Started

Prerequisites

Setup environment

  1. Clone the repository
git clone [email protected]:ViniciosLugli/IoT-mqtt-simulator.git
  1. Navigate to the project's root directory
cd IoT-mqtt-simulator
  1. Copy the .env.template file to .env and fill in the environment variables

Run the project

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

Run the tests

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

demo.mp4

License

This project is protected under the GNU General Public License v3.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published