Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers moistureMeter.h Source File

moistureMeter.h

00001 #ifndef SLAVE_MOISTUREMETER_H
00002 #define SLAVE_MOISTUREMETER_H
00003 
00004 #include "sensor.h"
00005 
00006 class MoistureMeter : public Sensor {
00007 
00008 private:
00009     AnalogIn analogIn;
00010 
00011 public:
00012     MoistureMeter(PinName dataPin) : analogIn(dataPin) {}
00013     
00014     int read();
00015     
00016     int getSensorId();
00017 
00018     void initialize();
00019 };
00020 
00021 #endif //SLAVE_MOISTUREMETER_H