Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Mon Apr 13 14:24:58 2015 +0000
Revision:
92:0acd11870c6a
Parent:
90:423177e8a401
Child:
93:61d44636f020
v2.1rc1

Who changed what in which revision?

UserRevisionLine numberNew 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>
Cumulocity 41:804f6a0bda26 5 #include "MDM.h"
vwochnik 55:a0f7295ed6b6 6 #include "RtosSmartRest.h"
Cumulocity 41:804f6a0bda26 7 #include "SmartRestTemplate.h"
Cumulocity 41:804f6a0bda26 8 #include "DeviceInfo.h"
vwochnik 67:c360a2b2c948 9 #include "DeviceMemory.h"
Cumulocity 41:804f6a0bda26 10 #include "DeviceBootstrap.h"
Cumulocity 41:804f6a0bda26 11 #include "DeviceIntegration.h"
vwochnik 68:0dc778a16d0d 12 #include "DeviceConfiguration.h"
vwochnik 68:0dc778a16d0d 13 #include "ConfigurationProperties.h"
vwochnik 68:0dc778a16d0d 14 #include "ConfigurationSynchronization.h"
Cumulocity 41:804f6a0bda26 15 #include "SignalQualityMeasurement.h"
Cumulocity 41:804f6a0bda26 16 #include "TemperatureMeasurement.h"
Cumulocity 41:804f6a0bda26 17 #include "AccelerationMeasurement.h"
Cumulocity 47:89ae46d5c466 18 #include "AnalogMeasurement.h"
Cumulocity 47:89ae46d5c466 19 #include "LocationUpdate.h"
vwochnik 57:4af5f1bec3a6 20 #include "OperationSupport.h"
xinlei 92:0acd11870c6a 21 #include "LCDDisplay.h"
xinlei 92:0acd11870c6a 22 #include "SmartRestConf.h"
Cumulocity 41:804f6a0bda26 23
Cumulocity 41:804f6a0bda26 24 class MbedAgent
Cumulocity 41:804f6a0bda26 25 {
Cumulocity 41:804f6a0bda26 26 public:
xinlei 92:0acd11870c6a 27 MbedAgent(GPSI2C&, MDMSerial&, LCDDisplay&, DeviceInfo&, DeviceMemory&);
xinlei 92:0acd11870c6a 28
Cumulocity 41:804f6a0bda26 29 bool init();
xinlei 92:0acd11870c6a 30 int run();
xinlei 92:0acd11870c6a 31 void loop();
Cumulocity 41:804f6a0bda26 32
Cumulocity 41:804f6a0bda26 33 protected:
Cumulocity 41:804f6a0bda26 34
Cumulocity 41:804f6a0bda26 35 private:
Cumulocity 41:804f6a0bda26 36 MDMSerial& _mdm;
Cumulocity 41:804f6a0bda26 37 DeviceInfo& _deviceInfo;
vwochnik 67:c360a2b2c948 38 DeviceMemory& _deviceMemory;
vwochnik 68:0dc778a16d0d 39 DeviceConfiguration _deviceConfiguration;
vwochnik 68:0dc778a16d0d 40 ConfigurationProperties _configurationProperties;
vwochnik 55:a0f7295ed6b6 41 RtosSmartRest _client;
Cumulocity 41:804f6a0bda26 42 SmartRestTemplate _tpl;
Cumulocity 41:804f6a0bda26 43 DeviceBootstrap _bootstrap;
Cumulocity 41:804f6a0bda26 44 DeviceIntegration _integration;
xinlei 92:0acd11870c6a 45 LCDDisplay& _lcdDisplay;
vwochnik 68:0dc778a16d0d 46 ConfigurationSynchronization _configurationSynchronization;
Cumulocity 41:804f6a0bda26 47 SignalQualityMeasurement _signalQualityMeasurement;
Cumulocity 41:804f6a0bda26 48 TemperatureMeasurement _temperatureMeasurement;
Cumulocity 41:804f6a0bda26 49 AccelerationMeasurement _accelerationMeasurement;
Cumulocity 47:89ae46d5c466 50 AnalogMeasurement _analogMeasurement;
Cumulocity 47:89ae46d5c466 51 LocationUpdate _locationUpdate;
vwochnik 57:4af5f1bec3a6 52 OperationSupport _operationSupport;
Cumulocity 41:804f6a0bda26 53 long _deviceId;
Cumulocity 41:804f6a0bda26 54 };
Cumulocity 41:804f6a0bda26 55
Cumulocity 41:804f6a0bda26 56 #endif