Proof of concept for distance and temperature monitoring
Dependencies: mbed mbedConnectorInterface mbedEndpointNetwork
resource/TemperatureResource.h
- Committer:
- coyotebush
- Date:
- 2015-05-05
- Revision:
- 6:bbea44df21e8
File content as of revision 6:bbea44df21e8:
#ifndef TEMPERATURE_RESOURCE_H #define TEMPERATURE_RESOURCE_H #include "DynamicResource.h" #include "GroveTemp.h" class TemperatureResource : public DynamicResource { public: TemperatureResource(const Logger *logger, const char *name, GroveTempSensor *sensor, const bool observable = false) : DynamicResource(logger, name, "TemperatureResource", SN_GRS_GET_ALLOWED, observable), sensor(sensor) {} virtual string get(); private: GroveTempSensor *sensor; }; #endif