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 13 14:24:58 2015 +0000
Revision:
93:0acd11870c6a
Parent:
82:ca7430f50b2b
Child:
94:61d44636f020
v2.1rc1

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"
xinlei 93:0acd11870c6a 8 #include "LCDDisplay.h"
Cumulocity 47:89ae46d5c466 9
Cumulocity 47:89ae46d5c466 10 class LocationUpdate
Cumulocity 47:89ae46d5c466 11 {
Cumulocity 47:89ae46d5c466 12 public:
xinlei 93:0acd11870c6a 13 LocationUpdate(AbstractSmartRest&, SmartRestTemplate&, long&, GPSI2C&, DeviceInfo&, LCDDisplay&);
Cumulocity 47:89ae46d5c466 14
Cumulocity 47:89ae46d5c466 15 bool init();
Cumulocity 47:89ae46d5c466 16 bool run();
Cumulocity 47:89ae46d5c466 17
Cumulocity 47:89ae46d5c466 18 private:
Cumulocity 47:89ae46d5c466 19 bool _init;
Cumulocity 47:89ae46d5c466 20 long& _deviceId;
Cumulocity 47:89ae46d5c466 21 SmartRestTemplate& _tpl;
vwochnik 55:a0f7295ed6b6 22 AbstractSmartRest& _client;
xinlei 93:0acd11870c6a 23 GPSTracker _gpsTracker;
xinlei 71:063c45e99578 24 float oldValues[3];
xinlei 71:063c45e99578 25 Timer sendingTimer;
xinlei 73:313975bfec96 26 DeviceInfo& _deviceInfo;
xinlei 93:0acd11870c6a 27 LCDDisplay& _lcdDisplay;
Cumulocity 47:89ae46d5c466 28 };
Cumulocity 47:89ae46d5c466 29
Cumulocity 47:89ae46d5c466 30 #endif