A TextLogger that logs to the Arduino Serial connection.
More...
#include <ArduinoTextLogger.h>
|
| ArduinoTextLogger (uint8_t id, long baud) |
| Construct a new Arduino Text Logger object.
|
|
void | _log (const char *fmt, va_list args) override |
| Log a message to the Arduino Serial connection.
|
|
int8_t | setup () override |
| Set up the Serial connection.
|
|
int8_t | loop () override |
| Do nothing.
|
|
virtual SUBSYSTEM_NO_MESSAGE_HANDLER void | _log (const char *fmt, va_list args)=0 |
|
| Subsystem (uint8_t id) |
|
virtual const char * | get_name ()=0 |
|
virtual int8_t | setup ()=0 |
|
virtual int8_t | loop ()=0 |
|
uint8_t | get_id () const |
|
int8_t | get_status () const |
|
int8_t | self_test () const |
|
bool | add_subscriber (Subsystem *subscriber) |
|
| Subsystem (uint8_t id) |
|
A TextLogger that logs to the Arduino Serial connection.
This class handles the setup of the Serial connection and the logging of messages to the Serial connection
◆ ArduinoTextLogger()
ArduinoTextLogger::ArduinoTextLogger |
( |
uint8_t |
id, |
|
|
long |
baud |
|
) |
| |
|
inlineexplicit |
Construct a new Arduino Text Logger object.
- Parameters
-
id | The ID of the logger |
baud | The baud rate of the Serial connection |
◆ _log()
void ArduinoTextLogger::_log |
( |
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
|
overridevirtual |
Log a message to the Arduino Serial connection.
- Parameters
-
fmt | The format string |
args | The arguments to the format string |
Implements TextLogger.
◆ loop()
int8_t ArduinoTextLogger::loop |
( |
| ) |
|
|
inlineoverridevirtual |
Do nothing.
- Returns
- int8_t 0 on success
Implements Subsystem.
◆ setup()
int8_t ArduinoTextLogger::setup |
( |
| ) |
|
|
inlineoverridevirtual |
Set up the Serial connection.
- Returns
- int8_t 0 on success
Implements Subsystem.
The documentation for this class was generated from the following file: