Snorktracker
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions | Protected Attributes
SerialOut Class Reference

#include <Utils.h>

Public Member Functions

 SerialOut (String msg)
 
 ~SerialOut ()
 

Protected Attributes

String message
 Mesage on contructor and destructor.
 

Detailed Description

Helper class for debugging via Serial.println

Definition at line 27 of file Utils.h.

Constructor & Destructor Documentation

SerialOut::SerialOut ( String  msg)
inline

Print out the start millis() and the message

Definition at line 34 of file Utils.h.

References message.

35  : message(msg)
36  {
37  String m = ":" + String(millis()) + "[" + message;
38  Serial.println(m.c_str());
39  }
String message
Mesage on contructor and destructor.
Definition: Utils.h:30
SerialOut::~SerialOut ( )
inline

Print out the end millis() and the message

Definition at line 41 of file Utils.h.

References message.

42  {
43  String m = message + ":" + String(millis()) + "]";
44  Serial.println(m.c_str());
45  }
String message
Mesage on contructor and destructor.
Definition: Utils.h:30

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