23 lines
461 B
C++
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
|