longer watchdog timeout for mqtt broker reconnect and better help text

This commit is contained in:
hg 2015-06-20 13:57:38 +02:00
parent b4788c257a
commit 95f1743fc4
2 changed files with 5 additions and 4 deletions

View File

@ -37,8 +37,9 @@ String MqttConfig::exec(String params) {
if (params.equalsIgnoreCase("help")) {
*out << "help ..... this help page" << endl;
*out << "show ..... shows the whole configuration" << endl;
*out << "broker ... set the broker's address" << endl;
*out << " followed by a restart, you need to" << endl;
*out << "broker ... set the broker's address (this needs to be an IP address," << endl;
*out << " a hostname won't work!! DNS seems to be broken" << endl;
*out << " followed by a restart, you need to wait" << endl;
*out << " about a minute" << endl;
*out << "add ...... add an mbus client, params: token name address period" << endl;
*out << "del ...... delete an mbus client, params: index" << endl;
@ -293,7 +294,7 @@ void MqttClient::exec() {
}
break;
case 3:
Serial << "Trying to re-connect" << endl;
Serial << "Trying to re-connect: <" << m_mqttBroker << ">" << endl;
if (m_mqttClient.connect("MeterbusHub")) {
Serial << "MQTT connected" << endl;
m_mqttClient.subscribe(WATCHDOG_TOPIC);

View File

@ -50,7 +50,7 @@ extern "C" {
WDOG_UNLOCK = WDOG_UNLOCK_SEQ2;
// one minute
WDOG_TOVALL = 20000;
WDOG_TOVALL = 60000;
WDOG_TOVALH = 0;
WDOG_PRESC = 0;