From b2b6413149ce3d394a155630cfcf70eec2db3fbd Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 25 Jul 2020 18:28:23 +0200 Subject: [PATCH] optimizing mqtt --- src/emsdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 72fe9da06..16341f8ad 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -198,7 +198,7 @@ void EMSdevice::show_mqtt_handlers(uuid::console::Shell & shell) { Mqtt::show_topic_handlers(shell, this->device_id_); } -void EMSdevice::register_mqtt_topic(const std::string & topic, mqtt_function_p f) { +void EMSdevice::register_mqtt_topic(const std::string & topic, mqtt_subfunction_p f) { LOG_DEBUG(F("Registering MQTT topic %s for device ID %02X"), topic.c_str(), this->device_id_); Mqtt::subscribe(this->device_id_, topic, f); }