Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed NTPClient
Diff: Headers/PmedLog.h
- Branch:
- feature-logs
- Revision:
- 11:2b79016076dc
- Child:
- 22:a06c7bb05008
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Headers/PmedLog.h Fri Mar 27 13:49:17 2015 +0000
@@ -0,0 +1,39 @@
+/*
+ * Settings.h
+ *
+ * Created on: 19/jan/2015
+ * Author: Marcos A. Lucas
+ */
+
+#ifndef PMEDLOG_H
+#define PMEDLOG_H
+
+#include "mbed.h"
+#include "Settings.h"
+
+#define LOGFILE "/local/pmedlog.txt"
+
+class PmedLog
+{
+
+protected:
+
+ static int m_entry;
+ static time_t m_lastMark;
+
+public:
+
+ PmedLog();
+
+ // Control the marks behavior in log file
+ static bool get_LogMarks() { return Settings::get_LogMarks(); }
+ static void set_LogMarks(bool value) { Settings::set_LogMarks(value); }
+ static int get_LogMarksInterval() { return Settings::get_LogMarksInterval(); }
+ static void set_LogMarksInterval(int value) { Settings::set_LogMarksInterval(value); }
+
+ static void WriteEntry(char *value);
+ static void Mark();
+
+};
+
+#endif //#ifndef PMEDLOGS_H
\ No newline at end of file
