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 Feb 16 09:17:30 2015 +0000
Revision:
71:063c45e99578
Parent:
56:4d6e34f1589d
Child:
73:313975bfec96
Various minor bug fixes

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