Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

humidityMeter.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_HUMIDITYMETER_H
#define SLAVE_HUMIDITYMETER_H

#include "DHT11.h"
#include "sensor.h"

class HumidityMeter : public Sensor {

private:
    DHT11* dht;


public:
    HumidityMeter(DHT11* dht) : dht(dht) {}
    
    int read();
    
    int getSensorId();

    void initialize();
};



#endif //SLAVE_HUMIDITYMETER_H