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

measurement/Location.h

Committer:
xinlei
Date:
2015-05-08
Revision:
101:dbcd3bc51758
Child:
124:311fa85af2b3

File content as of revision 101:dbcd3bc51758:

#ifndef LOCATION_H
#define LOCATION_H
#include "mbed.h"
#include "GPSTracker.h"
#include "AbstractReporter.h"


class Location: public AbstractReporter
{
public:
        Location(): gpsTracker() {
                oldValues[0] = 0;
                oldValues[1] = 0;
                oldValues[2] = 0;
                t_start = time(NULL);
        }
        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];
        time_t t_start;
};

#endif /* LOCATION_H */