From bff50db77d9e1f50d68374c7eda6ea2b27492f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 30 Nov 2016 23:34:48 +0100 Subject: [PATCH] Added reset command from console --- code/src/settings.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/src/settings.ino b/code/src/settings.ino index bbef7534..29e0826d 100644 --- a/code/src/settings.ino +++ b/code/src/settings.ino @@ -47,6 +47,11 @@ void settingsSetup() { e->response(Embedis::OK); }); + Embedis::command( F("reset"), [](Embedis* e) { + e->response(Embedis::OK); + ESP.reset(); + }); + DEBUG_MSG("[SETTINGS] Initialized\n"); }