mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
removed dangerous restart mqtt cmd
This commit is contained in:
@@ -56,12 +56,6 @@ void System::mqtt_commands(const char * message) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// restart EMS-ESP
|
|
||||||
if (strcmp(message, "restart") == 0) {
|
|
||||||
LOG_INFO(F("Restart command received"));
|
|
||||||
restart();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doc["send"] != nullptr) {
|
if (doc["send"] != nullptr) {
|
||||||
const char * data = doc["send"];
|
const char * data = doc["send"];
|
||||||
EMSESP::send_raw_telegram(data);
|
EMSESP::send_raw_telegram(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user