21 lines
375 B
C++
21 lines
375 B
C++
#pragma once
|
|
|
|
#include "Thing.h"
|
|
|
|
namespace Passer {
|
|
namespace Control {
|
|
|
|
class TemperatureSensor : public Thing {
|
|
public:
|
|
TemperatureSensor(unsigned char networkId, unsigned char thingId);
|
|
|
|
virtual void SetTemperature(float temp);
|
|
|
|
void SendBytes(char *buffer, unsigned char *ix) override;
|
|
|
|
protected:
|
|
float temp = 0;
|
|
};
|
|
|
|
} // namespace Control
|
|
} // namespace Passer
|