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 sensor.h Source File

sensor.h

00001 #ifndef MBEDDED_SENSOR_H
00002 #define MBEDDED_SENSOR_H
00003 
00004 #include "mbed.h"
00005 
00006 class Sensor {
00007 public:
00008     virtual void initialize() = 0;
00009 
00010     virtual int read() = 0;
00011 
00012     virtual int getSensorId() = 0; // different ID for each type of sensor
00013 };
00014 
00015 
00016 #endif //MBEDDED_SENSOR_H