![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
asdf
Dependencies: Servo mbed mbedConnectorInterface mbedEndpointNetwork
Fork of TempAndDistTest by
resource/ServoResource.h
- Committer:
- mnorris
- Date:
- 2015-05-09
- Revision:
- 4:20feba0e781b
- Parent:
- 3:c17adf68862b
File content as of revision 4:20feba0e781b:
#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_PUT_ALLOWED, observable), servo(servo) {} void on(); void off(); virtual void put(const string); virtual string get(); private: Servo *servo; }; #endif