Code for sensor nodes connected by radio receiver with gateway
Dependencies: mbed WakeUp coapRadioClient DHT11
Diff: sensor.h
- Revision:
- 0:4c0d384fd5cf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensor.h Thu Jan 24 16:40:14 2019 +0000 @@ -0,0 +1,16 @@ +#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