add info cmd

This commit is contained in:
hg 2015-05-13 21:15:10 +02:00
parent 98506ca883
commit fccb9f3b21
2 changed files with 46 additions and 0 deletions

23
info.cpp Normal file
View 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
View 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_ */