Browse Source

Terminal commands: renamed RECONNECT to RESET.WIFI, added RESET.MQTT

fastled
Xose Pérez 7 years ago
parent
commit
ca12524db7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      code/espurna/settings.ino

+ 4
- 4
code/espurna/settings.ino View File

@ -99,16 +99,16 @@ void settingsSetup() {
e->response(s); e->response(s);
}, 0); }, 0);
Embedis::command( F("RECONNECT"), [](Embedis* e) {
Embedis::command( F("RESET.WIFI"), [](Embedis* e) {
wifiConfigure(); wifiConfigure();
wifiDisconnect(); wifiDisconnect();
e->response(Embedis::OK); e->response(Embedis::OK);
}); });
Embedis::command( F("RESTART"), [](Embedis* e) {
Embedis::command( F("RESET.MQTT"), [](Embedis* e) {
mqttConfigure();
mqttDisconnect();
e->response(Embedis::OK); e->response(Embedis::OK);
customReset(CUSTOM_RESET_TERMINAL);
ESP.restart();
}); });
Embedis::command( F("RESET"), [](Embedis* e) { Embedis::command( F("RESET"), [](Embedis* e) {


Loading…
Cancel
Save