longer watchdog timeout for mqtt broker reconnect and better help text
This commit is contained in:
parent
b4788c257a
commit
95f1743fc4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user