![](/media/cache/group/u-blox_logo_trans.png.50x50_q85.png)
portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
LocationUpdate.h@47:89ae46d5c466, 2014-07-24 (annotated)
- Committer:
- Cumulocity
- Date:
- Thu Jul 24 23:32:53 2014 +0000
- Revision:
- 47:89ae46d5c466
major update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Cumulocity | 47:89ae46d5c466 | 1 | #ifndef LOCATIONUPDATE_H |
Cumulocity | 47:89ae46d5c466 | 2 | #define LOCATIONUPDATE_H |
Cumulocity | 47:89ae46d5c466 | 3 | |
Cumulocity | 47:89ae46d5c466 | 4 | #include "SmartRest.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: |
Cumulocity | 47:89ae46d5c466 | 11 | LocationUpdate(SmartRest&, 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; |
Cumulocity | 47:89ae46d5c466 | 20 | SmartRest& _client; |
Cumulocity | 47:89ae46d5c466 | 21 | GPSTracker& _gpsTracker; |
Cumulocity | 47:89ae46d5c466 | 22 | }; |
Cumulocity | 47:89ae46d5c466 | 23 | |
Cumulocity | 47:89ae46d5c466 | 24 | #endif |