This project provides a simulator dedicated to modeling an IoT ecosystem focused on air quality monitoring. It consists of several essential classes, including the Server, Sensor, and Scheduler classes.
The ecosystem operates smoothly following these steps:
-
Multiple Sensors: Various sensors, such as those dedicated to light, temperature, humidity, and sound, are integrated into the simulator.
-
Scheduler: The Scheduler class plays a central role in gathering data from these sensors. It coordinates the entire process by preparing information for later transmission.
-
Smart Server: Equipped with an integrated algorithm, the server supports the orchestration of sensor data transmission. It optimizes communication by organizing data at diverse time intervals, providing increased efficiency.
The Server class represents the system's brain, coordinating the reception and transmission of data. Its integrated algorithm ensures intelligent information management for efficient resource utilization.
The Sensor class encapsulates the various types of sensors present in the ecosystem. Each sensor specializes in collecting data related to a specific dimension of air quality.
The Scheduler class acts as a central scheduler, organizing the collection and preparation of sensor data before transmitting it to the server. It optimizes the process for smooth and efficient communication.
Sure, let's tweak your README with the new parameter information:
-
Program Parameters: To use the project, you have several parameter options.
program_name -l -c
The parameters allow you to customize the program behavior. Here's a breakdown of the available options:
-l
or--log
: Activates logging, directing messages to log files.-c
or--console
: Activates console output, displaying messages in the console.
Additionally, you can use the following options for special functionality:
-v
or--version
: Displays the version number of the program.
program_name -v
-h
or--help
: Displays the help message, providing information on how to use the program and its options.
program_name -h
Example usage:
program_name -l -c
This command activates both logging and console output.
program_name -v
This command displays the version number of the program.
program_name -h
This command displays the help message, explaining how to use the program and its available options.
-
Prerequisites: Ensure you have g++ (the C++ compiler) installed on your system.
-
Download Source Code: Clone the GitHub repository in your terminal.
git clone https://github.com/your-username/iot-simulator
-
Navigate to Directory: Go to the project directory.
cd iot-simulator
-
Compilation: Use g++ to compile the source code.
g++ -o simulator main.cpp Sensor.cpp Scheduler.cpp Server.cpp
-
Execution: Run the generated program.
simulator
-
Prerequisites: Ensure you have g++ installed on your system.
-
Download Source Code: Clone the GitHub repository in your terminal.
git clone https://github.com/your-username/iot-simulator
-
Navigate to Directory: Go to the project directory.
cd iot-simulator
-
Compilation: Use g++ to compile the source code.
g++ -o simulator main.cpp Sensor.cpp Scheduler.cpp Server.cpp
-
Execution: Run the generated program.
./simulator
These instructions assume that your source files are named main.cpp, Sensor.cpp, Scheduler.cpp, and Server.cpp. If your file names are different, make sure to adjust them during compilation. Explore the C++ IoT simulator and test its features on your preferred platform!