Revamped IoT System Simulator
- C 98.9%
- CMake 0.7%
- Shell 0.4%
| .github/workflows | ||
| assets | ||
| config | ||
| lib/cJSON | ||
| src | ||
| .gitignore | ||
| build.sh | ||
| CMakeLists.txt | ||
| README.md | ||
Revamped IoT System Simulator
This project is based on an Operating System's class assignment but better thought out, better structured and more efficient.
Original Diagram
Revamped Diagram
Build
Release Build
Default compilation option, the program will run as normal.
Using build script
./build.sh Release
Manually
mkdir build
cd build
cmake -DDCMAKE_BUILD_TYPE=Release ..
make
Debug Build
When setting the debug build type, CMake will define the DEBUG macro and the simulator will give all kinds of information about what's going on under the hood (ie. insertions in the Bin Max Heap).
Using build script
./build.sh Debug
Manually
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
Usage
iot-system-sim
Only a single iot-system-sim instance should be running
./iot-system-sim *config_file*
sensor
Multiple sensors can be created
./sensor *sensorID* *interval (seconds)* *key* *min value* *max value* *config file*
