Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/LocationUpdate.h@96:5dfdc8568e9f, 2015-04-27 (annotated)
- 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?
| 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 | |
| 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 | 96:5dfdc8568e9f | 12 | LocationUpdate(AbstractSmartRest&, SmartRestTemplate&, long&, GPSI2C&, 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 | 93:0acd11870c6a | 22 | GPSTracker _gpsTracker; |
| xinlei | 71:063c45e99578 | 23 | float oldValues[3]; |
| xinlei | 94: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 |

Cumulocity