RoboidControl-cpp/Sensors/DigitalSensor.h
Pascal Serrarens f2f942d084 Refactoring
2025-02-28 15:01:23 +01:00

22 lines
546 B
C++

#pragma once
#include "Thing.h"
namespace RoboidControl {
/// @brief A digital (on/off, 1/0, true/false) sensor
class DigitalSensor : public Thing {
public:
/// @brief The sigital state
bool state = 0;
/// @brief The default constructor
//DigitalSensor();
/// @brief Create a temperature sensor with the given ID
/// @param networkId The network ID of the sensor
/// @param thingId The ID of the thing
DigitalSensor(Participant* participant, unsigned char networkId, unsigned char thingId);
};
} // namespace RoboidControl