Revamped IoT System Simulator
  • C 98.9%
  • CMake 0.7%
  • Shell 0.4%
Find a file
2024-06-29 21:15:23 +01:00
.github/workflows cmake workflow + readme fix 2023-09-23 18:25:03 +01:00
assets shmem updated 2024-02-24 18:07:19 +00:00
config #24 adapted config code to support strings 2024-02-08 12:22:24 +00:00
lib/cJSON config file code done (log and termination remaining) 2023-09-23 22:01:12 +01:00
src optimized dynamic array read routine + fixed string management code for dynamic arrays 2024-06-29 21:15:23 +01:00
.gitignore logging working 2023-09-27 15:28:49 +01:00
build.sh build script 2024-02-20 11:32:32 +00:00
CMakeLists.txt refactor source files cmake 2024-06-28 12:50:50 +01:00
README.md style update 2024-02-20 11:50:36 +00:00

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

Original Iot Sim Diagram

Revamped Diagram

Revised Iot Sim 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*