RoboidControl-cpp/Sensors/DigitalSensor.h
Pascal Serrarens 814df25aba First steps
2025-02-21 17:59:50 +01:00

23 lines
559 B
C++

#pragma once
#include "Thing.h"
namespace Passer {
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
} // namespace Passer