Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

moistureMeter.h

Committer:
Ka_myk
Date:
22 months ago
Revision:
7:2393eb882f82

File content as of revision 7:2393eb882f82:

#ifndef SLAVE_MOISTUREMETER_H
#define SLAVE_MOISTUREMETER_H

#include "sensor.h"

class MoistureMeter : public Sensor {

private:
    AnalogIn analogIn;

public:
    MoistureMeter(PinName dataPin) : analogIn(dataPin) {}
    
    int read();
    
    int getSensorId();

    void initialize();
};

#endif //SLAVE_MOISTUREMETER_H