Skip to content

Fysek/SensorClass

Repository files navigation

Sensor Class

The goal of this project is to create a sensor library in OOP. The process started with UML diagram and list of features to implement. System is based on Raspberry Pi which communicates with sensor, processes data and acts as a MQTT broker. This approach makes it simpler to connect any sensor and use it in IoT application with minimal changes in the code. Measurements are available through MQTT protocol on Grafana, MQTT Dash or any other MQTT client.

UML Diagram

Prerequisites

Application

sudo apt-get install libmosquitto-dev libmosquittopp-dev libssl-dev
sudo apt-get install wiringpi

Testing

sudo apt-get install libcppunit-dev

Usage

To run the application, simply execute the command below:

cd application/
make
./main

To run the unit tests, go to the module with tests/ directory and run make, e.g.:

cd sensor_class/tests/
make
./Testmain

Contact

Mateusz Dyrdol - @Mateusz Dyrdol - [email protected]

Project Link: https://github.com/Fysek/SensorClass/

About

Sensor drivers library using cpp OOP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published