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