RoboidControl-cpp/Sensors/DigitalSensor.h
2025-02-24 09:30:17 +01:00

22 lines
518 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(unsigned char networkId, unsigned char thingId);
};
} // namespace RoboidControl