portable version of the cumulocity demo

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Embed: (wiki syntax)

« Back to documentation index

GPSTracker Class Reference

GPSTracker Class Reference

A GPS tracker class providing access to the current position. More...

#include <GPSTracker.h>

Public Member Functions

 GPSTracker (GPSI2C &)
 Initialize a new GPSTracker object.
bool position (Position *)
 Retrieves and invalidates the current position.

Detailed Description

A GPS tracker class providing access to the current position.

Definition at line 11 of file GPSTracker.h.


Constructor & Destructor Documentation

GPSTracker ( GPSI2C &  gps )

Initialize a new GPSTracker object.

Parameters:
gpsa previously initialized instance of the GPSI2C class

Definition at line 5 of file GPSTracker.cpp.


Member Function Documentation

bool position ( GPSTracker::Position *  position )

Retrieves and invalidates the current position.

Parameters:
positiona pointer of type Position where the current position is written to
Returns:
true on success, false otherwise

Definition at line 12 of file GPSTracker.cpp.