![](/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@97:9f2de96941c4, 2015-04-27 (annotated)
- Committer:
- xinlei
- Date:
- Mon Apr 27 13:30:21 2015 +0000
- Revision:
- 97:9f2de96941c4
- Parent:
- 96:ea056f6be2e8
- Child:
- 98:e369fc75c000
Get rid of useless DeviceMemory class wrapper
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Cumulocity | 41:804f6a0bda26 | 1 | #ifndef MBEDAGENT_H |
Cumulocity | 41:804f6a0bda26 | 2 | #define MBEDAGENT_H |
Cumulocity | 41:804f6a0bda26 | 3 | |
Cumulocity | 41:804f6a0bda26 | 4 | #include <stddef.h> |
xinlei | 93:61d44636f020 | 5 | #include "SmartRest.h" |
Cumulocity | 41:804f6a0bda26 | 6 | #include "SmartRestTemplate.h" |
Cumulocity | 41:804f6a0bda26 | 7 | #include "DeviceInfo.h" |
Cumulocity | 41:804f6a0bda26 | 8 | #include "DeviceBootstrap.h" |
Cumulocity | 41:804f6a0bda26 | 9 | #include "DeviceIntegration.h" |
vwochnik | 68:0dc778a16d0d | 10 | #include "ConfigurationSynchronization.h" |
Cumulocity | 41:804f6a0bda26 | 11 | #include "SignalQualityMeasurement.h" |
Cumulocity | 41:804f6a0bda26 | 12 | #include "TemperatureMeasurement.h" |
Cumulocity | 41:804f6a0bda26 | 13 | #include "AccelerationMeasurement.h" |
Cumulocity | 47:89ae46d5c466 | 14 | #include "AnalogMeasurement.h" |
Cumulocity | 47:89ae46d5c466 | 15 | #include "LocationUpdate.h" |
vwochnik | 57:4af5f1bec3a6 | 16 | #include "OperationSupport.h" |
xinlei | 92:0acd11870c6a | 17 | #include "SmartRestConf.h" |
xinlei | 95:5dfdc8568e9f | 18 | #include "PollThread.h" |
xinlei | 93:61d44636f020 | 19 | #include "ReportThread.h" |
Cumulocity | 41:804f6a0bda26 | 20 | |
Cumulocity | 41:804f6a0bda26 | 21 | class MbedAgent |
Cumulocity | 41:804f6a0bda26 | 22 | { |
Cumulocity | 41:804f6a0bda26 | 23 | public: |
xinlei | 97:9f2de96941c4 | 24 | MbedAgent(GPSI2C&, DeviceInfo&); |
xinlei | 92:0acd11870c6a | 25 | |
Cumulocity | 41:804f6a0bda26 | 26 | bool init(); |
xinlei | 92:0acd11870c6a | 27 | int run(); |
xinlei | 92:0acd11870c6a | 28 | void loop(); |
Cumulocity | 41:804f6a0bda26 | 29 | |
Cumulocity | 41:804f6a0bda26 | 30 | protected: |
Cumulocity | 41:804f6a0bda26 | 31 | |
Cumulocity | 41:804f6a0bda26 | 32 | private: |
xinlei | 93:61d44636f020 | 33 | long _deviceId; |
xinlei | 93:61d44636f020 | 34 | SmartRest _client; |
Cumulocity | 41:804f6a0bda26 | 35 | SmartRestTemplate _tpl; |
Cumulocity | 41:804f6a0bda26 | 36 | DeviceBootstrap _bootstrap; |
Cumulocity | 41:804f6a0bda26 | 37 | DeviceIntegration _integration; |
vwochnik | 68:0dc778a16d0d | 38 | ConfigurationSynchronization _configurationSynchronization; |
Cumulocity | 41:804f6a0bda26 | 39 | SignalQualityMeasurement _signalQualityMeasurement; |
Cumulocity | 41:804f6a0bda26 | 40 | TemperatureMeasurement _temperatureMeasurement; |
Cumulocity | 41:804f6a0bda26 | 41 | AccelerationMeasurement _accelerationMeasurement; |
Cumulocity | 47:89ae46d5c466 | 42 | AnalogMeasurement _analogMeasurement; |
Cumulocity | 47:89ae46d5c466 | 43 | LocationUpdate _locationUpdate; |
xinlei | 93:61d44636f020 | 44 | OperationPool pool; |
vwochnik | 57:4af5f1bec3a6 | 45 | OperationSupport _operationSupport; |
Cumulocity | 41:804f6a0bda26 | 46 | }; |
Cumulocity | 41:804f6a0bda26 | 47 | |
Cumulocity | 41:804f6a0bda26 | 48 | #endif |