Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Committer:
xinlei
Date:
Mon Apr 27 10:50:21 2015 +0000
Revision:
96:5dfdc8568e9f
Parent:
94:61d44636f020
Child:
99:e369fc75c000
LCDDisplay now is singleton

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Cumulocity 41:804f6a0bda26 1 #ifndef ACCELERATIONMEASUREMENT_H
Cumulocity 41:804f6a0bda26 2 #define ACCELERATIONMEASUREMENT_H
Cumulocity 41:804f6a0bda26 3
vwochnik 55:a0f7295ed6b6 4 #include "AbstractSmartRest.h"
Cumulocity 41:804f6a0bda26 5 #include "SmartRestTemplate.h"
Cumulocity 41:804f6a0bda26 6 #include "MMA7660.h"
xinlei 73:313975bfec96 7 #include "DeviceInfo.h"
Cumulocity 41:804f6a0bda26 8
Cumulocity 41:804f6a0bda26 9 class AccelerationMeasurement
Cumulocity 41:804f6a0bda26 10 {
Cumulocity 41:804f6a0bda26 11 public:
xinlei 96:5dfdc8568e9f 12 AccelerationMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&);
Cumulocity 41:804f6a0bda26 13
Cumulocity 41:804f6a0bda26 14 bool init();
Cumulocity 41:804f6a0bda26 15 bool run();
Cumulocity 41:804f6a0bda26 16
Cumulocity 41:804f6a0bda26 17 private:
Cumulocity 41:804f6a0bda26 18 bool _init, _test;
Cumulocity 41:804f6a0bda26 19 long& _deviceId;
Cumulocity 41:804f6a0bda26 20 SmartRestTemplate& _tpl;
vwochnik 55:a0f7295ed6b6 21 AbstractSmartRest& _client;
xinlei 91:423177e8a401 22 MMA7660 _sensor;
xinlei 71:063c45e99578 23 float oldValues[3];
xinlei 94:61d44636f020 24 time_t t_start;
xinlei 73:313975bfec96 25 DeviceInfo& _deviceInfo;
Cumulocity 41:804f6a0bda26 26 };
Cumulocity 41:804f6a0bda26 27
Cumulocity 41:804f6a0bda26 28 #endif