
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/OperationExecutor.cpp
- Revision:
- 65:a62dbef2f924
- Parent:
- 64:31a640c32399
- Child:
- 66:31c754c36ed7
--- a/operation/OperationExecutor.cpp Thu Oct 30 12:30:04 2014 +0000 +++ b/operation/OperationExecutor.cpp Thu Oct 30 13:38:20 2014 +0000 @@ -5,10 +5,11 @@ #include <string.h> #include <stdio.h> -OperationExecutor::OperationExecutor(AbstractSmartRest& client, SmartRestTemplate& tpl, long& deviceId) : +OperationExecutor::OperationExecutor(AbstractSmartRest& client, SmartRestTemplate& tpl, long& deviceId, DeviceIO& io) : _client(client), _tpl(tpl), - _deviceId(deviceId) + _deviceId(deviceId), + _io(io) { _init = false; } @@ -72,8 +73,8 @@ bool OperationExecutor::executeRelayStateUpdate(bool relayState) { if (relayState) - puts("Closing relay..."); + _io.deviceFeedback().closeRelay(); else - puts("Opening relay..."); + _io.deviceFeedback().openRelay(); return true; }