diff --git a/src/var/illuchat/main.cpp b/src/var/illuchat/main.cpp index debf392..2a437c3 100644 --- a/src/var/illuchat/main.cpp +++ b/src/var/illuchat/main.cpp @@ -45,10 +45,9 @@ void setup() webServerPlugin->server->serveStatic(MQTT_CONFIG_FILE, SPIFFS, "mqttConfig.json"); const char* mqttChatTopic = (String(MQTT_ROOT_TOPIC) + "/out/chat/log").c_str(); - sprocket->subscribe("chat/log", [](String msg) { + sprocket->subscribe("chat/log", [mqttChatTopic](String msg) { PRINT_MSG(Serial, "CHAT", msg.c_str()); }); - sprocket->subscribe("mqtt/connect", [mqttChatTopic](String msg) { if (msg.length() > 0) {