#include <GPSP.h>
◆ GPSP()
GPSP::GPSP |
( |
Stream & |
stream | ) |
|
Construct a new GPSP object, associating a Stream (Generally a Serial) to it.
- Paramètres
-
◆ defineCommand()
void GPSP::defineCommand |
( |
Command |
command | ) |
|
Adds a new command to the List of Commands.
- Paramètres
-
◆ getStream()
Stream & GPSP::getStream |
( |
| ) |
|
Return the stream used by this GPSP instance.
- Renvoie
- Stream& The stream used by this GPSP instance.
◆ printError()
static void GPSP::printError |
( |
Stream & |
stream, |
|
|
const char * |
errorMessage |
|
) |
| |
|
static |
Prints "Error:" followed by the message.
- Paramètres
-
stream | The Stream to print the error to. |
errorMessage | The message to print to the stream as error. |
◆ update()
Reads available data from Stream and stores it in a buffer until a NewLine or Semicolon is encountered. When this case is encountered call ProcessBuffer
, then clears the buffer.
La documentation de cette classe a été générée à partir du fichier suivant :
- src/gpsp/GPSP.h
- src/gpsp/GPSP.cpp