![](/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
MbedAgent.h
- Committer:
- xinlei
- Date:
- 2015-04-20
- Revision:
- 93:61d44636f020
- Parent:
- 92:0acd11870c6a
- Child:
- 95:5dfdc8568e9f
File content as of revision 93:61d44636f020:
#ifndef MBEDAGENT_H #define MBEDAGENT_H #include <stddef.h> #include "MDM.h" #include "SmartRest.h" #include "SmartRestTemplate.h" #include "DeviceInfo.h" #include "DeviceMemory.h" #include "DeviceBootstrap.h" #include "DeviceIntegration.h" #include "DeviceConfiguration.h" #include "ConfigurationProperties.h" #include "ConfigurationSynchronization.h" #include "SignalQualityMeasurement.h" #include "TemperatureMeasurement.h" #include "AccelerationMeasurement.h" #include "AnalogMeasurement.h" #include "LocationUpdate.h" #include "OperationSupport.h" #include "LCDDisplay.h" #include "SmartRestConf.h" #include "PollingThread.h" #include "ReportThread.h" class MbedAgent { public: MbedAgent(GPSI2C&, MDMSerial&, LCDDisplay&, DeviceInfo&, DeviceMemory&); bool init(); int run(); void loop(); protected: private: long _deviceId; MDMSerial& _mdm; DeviceInfo& _deviceInfo; DeviceMemory& _deviceMemory; LCDDisplay& _lcdDisplay; DeviceConfiguration _deviceConfiguration; ConfigurationProperties _configurationProperties; SmartRest _client; SmartRestTemplate _tpl; DeviceBootstrap _bootstrap; DeviceIntegration _integration; ConfigurationSynchronization _configurationSynchronization; SignalQualityMeasurement _signalQualityMeasurement; TemperatureMeasurement _temperatureMeasurement; AccelerationMeasurement _accelerationMeasurement; AnalogMeasurement _analogMeasurement; LocationUpdate _locationUpdate; OperationPool pool; OperationSupport _operationSupport; }; #endif