AssetTrackerRK
|
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 |
Class parse and hold an arbitrary value. Typically subclassed.
|
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.
|
inline |
Returns true if the value has been updated.
Getting the value clears the updated flag, and commiting a change sets it.
|
inline |
Returns true if the value has been updated.
Getting the value clears the updated flag, and commiting a change sets it.