From ca12524db75c10b17c8f252d216b08e4d58d816e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 29 Aug 2017 10:10:10 +0200 Subject: [PATCH] Terminal commands: renamed RECONNECT to RESET.WIFI, added RESET.MQTT --- code/espurna/settings.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/espurna/settings.ino b/code/espurna/settings.ino index 0167b1ab..0a8328b9 100644 --- a/code/espurna/settings.ino +++ b/code/espurna/settings.ino @@ -99,16 +99,16 @@ void settingsSetup() { e->response(s); }, 0); - Embedis::command( F("RECONNECT"), [](Embedis* e) { + Embedis::command( F("RESET.WIFI"), [](Embedis* e) { wifiConfigure(); wifiDisconnect(); e->response(Embedis::OK); }); - Embedis::command( F("RESTART"), [](Embedis* e) { + Embedis::command( F("RESET.MQTT"), [](Embedis* e) { + mqttConfigure(); + mqttDisconnect(); e->response(Embedis::OK); - customReset(CUSTOM_RESET_TERMINAL); - ESP.restart(); }); Embedis::command( F("RESET"), [](Embedis* e) {