Espotel / Mbed 2 deprecated Elmo-Terminal-App

Dependencies:   SX1272lib mbed

Fork of Elmo-Terminal by Michal Leksinski

Revision:
2:8d8295a51f68
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Commands/GetVariableCmd.cpp	Thu Oct 01 09:40:30 2015 +0200
@@ -0,0 +1,36 @@
+#include <cstdlib>
+#include "GetVariableCmd.h"
+#include "dbg.h"
+#include "Settings.h"
+
+GetVariableCmd::GetVariableCmd(Settings* settings)
+    : Cmd()
+    , settings_(settings)
+{
+}
+
+GetVariableCmd::~GetVariableCmd()
+{
+}
+
+string GetVariableCmd::cmd()
+{
+    return "gv";
+}
+
+string GetVariableCmd::desc()
+{
+    return "lists all variables";
+}
+
+bool GetVariableCmd::execute(list<string> args)
+{
+    printf("%s", settings_->values().c_str());
+    return true;
+}
+
+string GetVariableCmd::getResponse(void)
+{
+    return "";
+}
+