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
measurement/Location.h
- Committer:
- xinlei
- Date:
- 2015-05-29
- Revision:
- 124:311fa85af2b3
- Parent:
- 101:dbcd3bc51758
- Child:
- 137:a52821cdb108
File content as of revision 124:311fa85af2b3:
#ifndef LOCATION_H #define LOCATION_H #include "mbed.h" #include "GPSTracker.h" #include "AbstractReporter.h" class Location: public AbstractReporter { public: Location(): gpsTracker(), timer() { oldValues[0] = 0; oldValues[1] = 0; oldValues[2] = 0; timer.start(); } virtual ~Location() {} virtual bool init() { return true; } virtual const char* name() const { return "GPS"; } virtual size_t read(char*, size_t, char*, size_t); private: GPSTracker gpsTracker; float oldValues[3]; Timer timer; }; #endif /* LOCATION_H */