AssetTrackerRK
Public Member Functions | Friends
TinyGPSCustom Class Reference

Class parse and hold an arbitrary value. Typically subclassed. More...

#include <TinyGPS++.h>

Public Member Functions

 TinyGPSCustom ()
 Constructor.
 
 TinyGPSCustom (TinyGPSPlus &gps, const char *sentenceName, int termNumber)
 Constructor.
 
void begin (TinyGPSPlus &gps, const char *_sentenceName, int _termNumber)
 Called when this sentence is beginning.
 
bool isUpdated () const
 Returns true if the value has been updated. More...
 
bool isValid () const
 Returns true if the value has been updated. More...
 
uint32_t age () const
 Returns the age of the value in milliseconds. More...
 
const char * value ()
 Returns the current value and clears the updated flag.
 

Friends

class TinyGPSPlus
 

Detailed Description

Class parse and hold an arbitrary value. Typically subclassed.

Member Function Documentation

◆ age()

uint32_t TinyGPSCustom::age ( ) const
inline

Returns the age of the value in milliseconds.

If the value is not valid, then ULONG_MAX is returned.

You might check to see if age is < 10000 to make sure the value has been retrieved in the last 10 seconds, for example.

◆ isUpdated()

bool TinyGPSCustom::isUpdated ( ) const
inline

Returns true if the value has been updated.

Getting the value clears the updated flag, and commiting a change sets it.

◆ isValid()

bool TinyGPSCustom::isValid ( ) const
inline

Returns true if the value has been updated.

Getting the value clears the updated flag, and commiting a change sets it.


The documentation for this class was generated from the following files: