class BaseLoop: help page added; ReadMe adapted.

This commit is contained in:
Roland Jax
2014-05-12 18:27:56 +02:00
parent 2a2b638fc4
commit 820b4dd6be
3 changed files with 20 additions and 1 deletions
+10
View File
@@ -213,6 +213,16 @@ std::string BaseLoop::decodeMessage(const std::string& data)
result << "done";
break;
case help:
result << " get - fetch ebus data [get class cmd (sub)]" << std::endl
<< " set - set ebus values [set class cmd value]" << std::endl
<< " cyc - fetch cycle data [cyc class cmd (sub)]" << std::endl
<< " dump - change dump state [dump on|off]" << std::endl
<< " log - change log level [log error|event|trace|debug]" << std::endl
<< " quit - close connection" << std::endl
<< " help - print this page";
break;
default:
break;
}
+2
View File
@@ -70,6 +70,7 @@ private:
cyc, // fetch cycle data
dump, // change dump state
log, // change log level
help, // print commands
notfound
};
@@ -81,6 +82,7 @@ private:
if (strcasecmp(item.c_str(), "cyc") == 0) return cyc;
if (strcasecmp(item.c_str(), "dump") == 0) return dump;
if (strcasecmp(item.c_str(), "log") == 0) return log;
if (strcasecmp(item.c_str(), "help") == 0) return help;
return notfound;
}