From 142f0dd2e20aafaa598c4d7cccc6c8d7a3589d58 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 12 Jan 2024 01:15:28 +0700 Subject: [PATCH] Update ESPMegaIoT.cpp --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp index 16ebc47..d508b09 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaIoT.cpp @@ -45,7 +45,7 @@ void ESPMegaIoT::mqttCallback(char *topic, byte *payload, unsigned int length) char *topic_without_base = topic + strlen(this->mqtt_config.base_topic) + 1; for (const auto &callback : mqtt_relative_callbacks) { - callback.second(topic_without_base + 3, payload_buffer); + callback.second(topic_without_base, payload_buffer); } for (const auto &callback : mqtt_callbacks) {