add info cmd
This commit is contained in:
parent
98506ca883
commit
fccb9f3b21
23
info.cpp
Normal file
23
info.cpp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* info.cpp
|
||||||
|
*
|
||||||
|
* Created on: 13.05.2015
|
||||||
|
* Author: wn
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include <WString.h>
|
||||||
|
#include "info.h"
|
||||||
|
|
||||||
|
String InfoCmd::exec(String params) {
|
||||||
|
Print *out = m_server;
|
||||||
|
|
||||||
|
*out << "Meterbus Hub" << endl;
|
||||||
|
*out << "Project/Repo: NetMeterBusMaster2" << endl;
|
||||||
|
*out << "Repo Tag: First_MQTT" << endl;
|
||||||
|
|
||||||
|
return "done";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
23
info.h
Normal file
23
info.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* info.h
|
||||||
|
*
|
||||||
|
* Created on: 13.05.2015
|
||||||
|
* Author: wn
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef INFO_H_
|
||||||
|
#define INFO_H_
|
||||||
|
|
||||||
|
|
||||||
|
#include "cmd.h"
|
||||||
|
|
||||||
|
class InfoCmd : public Cmd {
|
||||||
|
public:
|
||||||
|
virtual String getCmdName() { return "INFO"; }
|
||||||
|
virtual String getHelp() { return "Information on the firmware"; }
|
||||||
|
virtual String exec(String params);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* INFO_H_ */
|
Loading…
x
Reference in New Issue
Block a user