Pequena LIB para fazer um LOGGER

Dependents:   monitoramento_ativos

Revision:
1:f23ad1b9a35a
Parent:
0:1019a5a78757
--- a/Logger.h	Thu May 02 23:51:34 2019 +0000
+++ b/Logger.h	Sat May 04 08:56:58 2019 -0300
@@ -1,13 +1,22 @@
 #ifndef MBED_LOGGER_H
 #define MBED_LOGGER_H
 
-#include <string>
-using namespace std;
+#include "mbed.h"
+
+#include <stdarg.h>
+#include <stdlib.h>
+#include <string.h>
+
+#define DEVICE_SERIAL 1
 
-class Logger {
- 
+class Logger { 
  public:
-    static void log(string text);
+    char buffer[256];
+    Logger();
+    void log(char* text);
+
+ private:
+    Serial _pc; // tx, rx
 }
 ;
 #endif