Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Thu May 07 09:57:55 2015 +0000
Revision:
98:e369fc75c000
Parent:
95:5dfdc8568e9f
Child:
99:47ea098f8a47
prepare for v2.1rc3.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Cumulocity 47:89ae46d5c466 1 #ifndef LOCATIONUPDATE_H
Cumulocity 47:89ae46d5c466 2 #define LOCATIONUPDATE_H
Cumulocity 47:89ae46d5c466 3
vwochnik 55:a0f7295ed6b6 4 #include "AbstractSmartRest.h"
Cumulocity 47:89ae46d5c466 5 #include "SmartRestTemplate.h"
Cumulocity 47:89ae46d5c466 6 #include "GPSTracker.h"
xinlei 73:313975bfec96 7 #include "DeviceInfo.h"
Cumulocity 47:89ae46d5c466 8
Cumulocity 47:89ae46d5c466 9 class LocationUpdate
Cumulocity 47:89ae46d5c466 10 {
Cumulocity 47:89ae46d5c466 11 public:
xinlei 98:e369fc75c000 12 LocationUpdate(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&);
Cumulocity 47:89ae46d5c466 13
Cumulocity 47:89ae46d5c466 14 bool init();
Cumulocity 47:89ae46d5c466 15 bool run();
Cumulocity 47:89ae46d5c466 16
Cumulocity 47:89ae46d5c466 17 private:
Cumulocity 47:89ae46d5c466 18 bool _init;
Cumulocity 47:89ae46d5c466 19 long& _deviceId;
Cumulocity 47:89ae46d5c466 20 SmartRestTemplate& _tpl;
vwochnik 55:a0f7295ed6b6 21 AbstractSmartRest& _client;
xinlei 92:0acd11870c6a 22 GPSTracker _gpsTracker;
xinlei 71:063c45e99578 23 float oldValues[3];
xinlei 93:61d44636f020 24 time_t t_start;
xinlei 73:313975bfec96 25 DeviceInfo& _deviceInfo;
Cumulocity 47:89ae46d5c466 26 };
Cumulocity 47:89ae46d5c466 27
Cumulocity 47:89ae46d5c466 28 #endif