optimizing mqtt

This commit is contained in:
proddy
2020-07-25 18:28:23 +02:00
parent 87f1858d5e
commit b2b6413149

View File

@@ -198,7 +198,7 @@ void EMSdevice::show_mqtt_handlers(uuid::console::Shell & shell) {
Mqtt::show_topic_handlers(shell, this->device_id_); 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_); LOG_DEBUG(F("Registering MQTT topic %s for device ID %02X"), topic.c_str(), this->device_id_);
Mqtt::subscribe(this->device_id_, topic, f); Mqtt::subscribe(this->device_id_, topic, f);
} }