mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-27 22:31:37 +01:00
Fix documentation for MQTT client's subscribe method. (#1735)
This commit is contained in:
parent
241ebd7ec9
commit
aa3e04797f
@ -347,7 +347,7 @@ Configuration variables:
|
||||
|
||||
.. code-block:: cpp
|
||||
|
||||
id(mqtt_client).subscribe("the/topic", [=](const std::string &payload) {
|
||||
id(mqtt_client).subscribe("the/topic", [=](const std::string &topic, const std::string &payload) {
|
||||
// do something with payload
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user