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@82:ca7430f50b2b, 2015-03-06 (annotated)
- Committer:
- xinlei
- Date:
- Fri Mar 06 10:38:03 2015 +0000
- Revision:
- 82:ca7430f50b2b
- Parent:
- 73:313975bfec96
- Child:
- 93:0acd11870c6a
Threshold values tuning for avoiding sending unnecessary sensor readings.
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 "DeviceIO.h" | 
| xinlei | 73:313975bfec96 | 8 | #include "DeviceInfo.h" | 
| xinlei | 82:ca7430f50b2b | 9 | #include "DisplayInfo.h" | 
| Cumulocity | 47:89ae46d5c466 | 10 | |
| Cumulocity | 47:89ae46d5c466 | 11 | class LocationUpdate | 
| Cumulocity | 47:89ae46d5c466 | 12 | { | 
| Cumulocity | 47:89ae46d5c466 | 13 | public: | 
| xinlei | 82:ca7430f50b2b | 14 | LocationUpdate(AbstractSmartRest&, SmartRestTemplate&, long&, GPSTracker&, DeviceIO&, DeviceInfo&, DisplayInfo&); | 
| Cumulocity | 47:89ae46d5c466 | 15 | |
| Cumulocity | 47:89ae46d5c466 | 16 | bool init(); | 
| Cumulocity | 47:89ae46d5c466 | 17 | bool run(); | 
| Cumulocity | 47:89ae46d5c466 | 18 | |
| Cumulocity | 47:89ae46d5c466 | 19 | private: | 
| Cumulocity | 47:89ae46d5c466 | 20 | bool _init; | 
| Cumulocity | 47:89ae46d5c466 | 21 | long& _deviceId; | 
| Cumulocity | 47:89ae46d5c466 | 22 | SmartRestTemplate& _tpl; | 
| vwochnik | 55:a0f7295ed6b6 | 23 | AbstractSmartRest& _client; | 
| Cumulocity | 47:89ae46d5c466 | 24 | GPSTracker& _gpsTracker; | 
| xinlei | 71:063c45e99578 | 25 | float oldValues[3]; | 
| xinlei | 71:063c45e99578 | 26 | Timer sendingTimer; | 
| xinlei | 73:313975bfec96 | 27 | DeviceIO& _io; | 
| xinlei | 73:313975bfec96 | 28 | DeviceInfo& _deviceInfo; | 
| xinlei | 82:ca7430f50b2b | 29 | DisplayInfo& _displayInfo; | 
| Cumulocity | 47:89ae46d5c466 | 30 | }; | 
| Cumulocity | 47:89ae46d5c466 | 31 | |
| Cumulocity | 47:89ae46d5c466 | 32 | #endif | 

 Cumulocity
            Cumulocity