Code for sensor nodes connected by radio receiver with gateway

Dependencies:   mbed WakeUp coapRadioClient DHT11

sensor.h

Committer:
Ka_myk
Date:
22 months ago
Revision:
7:2393eb882f82
Parent:
0:4c0d384fd5cf

File content as of revision 7:2393eb882f82:

#ifndef MBEDDED_SENSOR_H
#define MBEDDED_SENSOR_H

#include "mbed.h"

class Sensor {
public:
    virtual void initialize() = 0;

    virtual int read() = 0;

    virtual int getSensorId() = 0; // different ID for each type of sensor
};


#endif //MBEDDED_SENSOR_H