Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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();
