inital commit

This commit is contained in:
2023-05-02 10:13:45 +02:00
commit 5dfdfce745
5 changed files with 266 additions and 0 deletions

15
sensor.h Normal file
View File

@ -0,0 +1,15 @@
#include <string>
class Sensor
{
public:
std::string chip;
std::string name;
int id = 0;
double reading = 0;
public:
Sensor() = default;
Sensor(std::string chipI, std::string nameI, int idI = 0): name(nameI), chip(chipI), name(nameI), id(idI) {}
bool operator==(const Sensor& other) {return other.name == name && other.chip == chip;}
};