remove test cmd, introduce resources to cmdServer
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
|
||||
#include <Metro.h>
|
||||
#include "cmd.h"
|
||||
#include "Resources.h"
|
||||
|
||||
const bool DEBUG = true;
|
||||
const bool INFO = true;
|
||||
@ -30,7 +31,7 @@ class ThermConfig : public Cmd {
|
||||
public:
|
||||
ThermConfig(Thermometer *thermometer) : m_thermometer(thermometer) {};
|
||||
virtual String getCmdName() { return "TCFG"; }
|
||||
virtual String getHelp() { return "Thermometer configuration operations"; }
|
||||
virtual String getHelp() { return getResource(THERMCONFIG_HELP_KEY); }
|
||||
virtual String exec(String params);
|
||||
private:
|
||||
Thermometer *m_thermometer;
|
||||
@ -40,7 +41,7 @@ class ThermValues : public Cmd {
|
||||
public:
|
||||
ThermValues(Thermometer *thermometer) : m_thermometer(thermometer) {};
|
||||
virtual String getCmdName() { return "TVAL"; }
|
||||
virtual String getHelp() { return "Show thermometer measurement values"; }
|
||||
virtual String getHelp() { return getResource(THERMVALUES_HELP_KEY); }
|
||||
virtual String exec(String params);
|
||||
private:
|
||||
Thermometer *m_thermometer;
|
||||
@ -50,7 +51,7 @@ class ThermCalibrate : public Cmd {
|
||||
public:
|
||||
ThermCalibrate(Thermometer *thermometer);
|
||||
virtual String getCmdName() { return "TCALIBR"; }
|
||||
virtual String getHelp() { return "Thermometer calibration operations"; }
|
||||
virtual String getHelp() { return getResource(THERMCALIBRATE_HELP_KEY); }
|
||||
virtual String exec(String params);
|
||||
friend class Thermometer;
|
||||
private:
|
||||
|
Reference in New Issue
Block a user