RoboidControl-cpp/Sensors/TemperatureSensor.h
2025-02-19 17:54:55 +01:00

23 lines
461 B
C++

#pragma once
#include "Thing.h"
namespace Passer {
namespace RoboidControl {
class TemperatureSensor : public Thing {
public:
TemperatureSensor();
TemperatureSensor(unsigned char networkId, unsigned char thingId);
virtual void SetTemperature(float temp);
void GenerateBinary(char *buffer, unsigned char *ix) override;
virtual void ProcessBinary(char *bytes) override;
protected:
float temp = 0;
};
} // namespace Control
} // namespace Passer