![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: MbedAgent.cpp
- Revision:
- 57:4af5f1bec3a6
- Parent:
- 52:8f1370084268
- Child:
- 60:3c822f97fc73
--- a/MbedAgent.cpp Thu Oct 23 12:59:37 2014 +0000 +++ b/MbedAgent.cpp Thu Oct 23 14:21:26 2014 +0000 @@ -13,6 +13,7 @@ _accelerationMeasurement(_client, _tpl, _deviceId, _io.accelerometer()), _analogMeasurement(_client, _tpl, _deviceId, _io.analog1(), _io.analog2()), _locationUpdate(_client, _tpl, _deviceId, _io.gpsTracker()), + _operationSupport(_client, _tpl, _deviceId), _deviceId(0) { } @@ -24,7 +25,8 @@ (!_temperatureMeasurement.init()) || (!_accelerationMeasurement.init()) || (!_analogMeasurement.init()) || - (!_locationUpdate.init())) { + (!_locationUpdate.init()) || + (!_operationSupport.init())) { puts("Initialization failed."); return false; } @@ -65,6 +67,7 @@ _accelerationMeasurement.run(); _analogMeasurement.run(); _locationUpdate.run(); + _operationSupport.run(); while (timer.read() < MBED_AGENT_INTERVAL) { Thread::yield();