20 lines
257 B
C++
20 lines
257 B
C++
#ifndef _SENSOR_H
|
|
#define _SENSOR_H
|
|
|
|
#include <cstdint>
|
|
|
|
class Sensor
|
|
{
|
|
public:
|
|
Sensor(uint32_t _id, uint32_t _value = 0)
|
|
: id(_id), value(_value)
|
|
{}
|
|
~Sensor() = default;
|
|
|
|
public:
|
|
uint32_t id;
|
|
uint64_t value;
|
|
};
|
|
|
|
#endif // _SENSOR_H
|