Code for sensor nodes connected by radio receiver with gateway
Dependencies: mbed WakeUp coapRadioClient DHT11
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
Generated on Fri Jul 15 2022 10:06:21 by 1.7.2