asdf
Dependencies: Servo mbed mbedConnectorInterface mbedEndpointNetwork
Fork of TempAndDistTest by
Diff: resource/ServoResource.h
- Revision:
- 3:c17adf68862b
- Child:
- 4:20feba0e781b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resource/ServoResource.h Sat May 09 18:40:08 2015 +0000 @@ -0,0 +1,22 @@ +#ifndef SERVO_RESOURCE_H +#define SERVO_RESOURCE_H + +#include "DynamicResource.h" +#include "Servo.h" + +class ServoResource : public DynamicResource { +public: + ServoResource(const Logger *logger, const char *name, Servo *servo, const bool observable = false) + : DynamicResource(logger, name, "ServoResource", SN_GRS_GET_ALLOWED, observable), servo(servo) + {} + + void on(); + void off(); + + virtual string get(); + +private: + Servo *servo; +}; + +#endif \ No newline at end of file