Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

tempMeter.h

Committer:
Ka_myk
Date:
22 months ago
Revision:
7:2393eb882f82
Parent:
3:4ffffdb5230f

File content as of revision 7:2393eb882f82:

//
// 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