Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
vwochnik
Date:
Sat Dec 13 16:07:07 2014 +0000
Revision:
69:237c01eb36c2
Parent:
68:0dc778a16d0d
Child:
76:b07effe83fb8
delFile bug fixed

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