more cmds
This commit is contained in:
@ -36,6 +36,15 @@ private:
|
||||
Thermometer *m_thermometer;
|
||||
};
|
||||
|
||||
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 exec(String params);
|
||||
private:
|
||||
Thermometer *m_thermometer;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -45,11 +54,13 @@ public:
|
||||
void begin(CmdServer *cmdServer);
|
||||
void exec();
|
||||
friend class ThermConfig;
|
||||
friend class ThermValues;
|
||||
|
||||
private:
|
||||
Metro m_period;
|
||||
unsigned long m_periodMillis;
|
||||
ThermConfig thermConfig;
|
||||
ThermValues thermValues;
|
||||
|
||||
bool m_debug;
|
||||
bool m_info;
|
||||
|
Reference in New Issue
Block a user