![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
asdf
Dependencies: Servo mbed mbedConnectorInterface mbedEndpointNetwork
Fork of TempAndDistTest by
Diff: resource/ServoResource.cpp
- Revision:
- 4:20feba0e781b
- Parent:
- 3:c17adf68862b
--- a/resource/ServoResource.cpp Sat May 09 18:40:08 2015 +0000 +++ b/resource/ServoResource.cpp Sat May 09 19:00:40 2015 +0000 @@ -20,4 +20,13 @@ string ServoResource::get() { return ""; -} \ No newline at end of file +} + +void ServoResource::put(const string input) { + if (input == "on") { + on(); + } + else { + off(); + } +}