Code for sensor nodes connected by radio receiver with gateway
Dependencies: mbed WakeUp coapRadioClient DHT11
tempMeter.h
00001 // 00002 // Created by Kamil Mykitiuk on 2019-01-21. 00003 // 00004 00005 #ifndef SLAVE_TEMPMETER_H 00006 #define SLAVE_TEMPMETER_H 00007 00008 #include "DHT11.h" 00009 #include "sensor.h" 00010 00011 class TempMeter : public Sensor { 00012 00013 private: 00014 DHT11* dht; 00015 00016 00017 public: 00018 TempMeter(DHT11* dht) : dht(dht) {} 00019 00020 int read(); 00021 00022 int getSensorId(); 00023 00024 void initialize(); 00025 }; 00026 00027 00028 00029 #endif //SLAVE_TEMPMETER_H
Generated on Fri Jul 15 2022 10:06:21 by 1.7.2