From e4572cc31aa63802bdac3474ee7893e2042eeea6 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Mon, 13 Feb 2023 18:56:39 +0300 Subject: [PATCH] Version 1.42 Fixed bug with ESP-NOW devices not getting restart or update command. Minor main code refactoring. --- src/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5588052..4dff492 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -403,7 +403,6 @@ void onMqttMessage(char *topic, byte *payload, unsigned int length) esp_now_payload_data_t outgoingData; outgoingData.deviceType = ENDT_GATEWAY; StaticJsonDocument json; - mqttPublish((topicPrefix + "/test").c_str(), String(message).c_str(), true); if (message == "update" || message == "restart") { if (mac == myNet.getNodeMac() && message == "restart")