Code for sensor nodes connected by radio receiver with gateway
Dependencies: mbed WakeUp coapRadioClient DHT11
Diff: tempMeter.h
- Revision:
- 3:4ffffdb5230f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tempMeter.h Fri Jan 25 02:01:01 2019 +0000 @@ -0,0 +1,29 @@ +// +// Created by Kamil Mykitiuk on 2019-01-21. +// + +#ifndef SLAVE_TEMPMETER_H +#define SLAVE_TEMPMETER_H + +#include "DHT11.h" +#include "sensor.h" + +class TempMeter : public Sensor { + +private: + DHT11* dht; + + +public: + TempMeter(DHT11* dht) : dht(dht) {} + + int read(); + + int getSensorId(); + + void initialize(); +}; + + + +#endif //SLAVE_TEMPMETER_H