Fix documentation for MQTT client's subscribe method. (#1735)

This commit is contained in:
Duncan Findlay 2021-12-20 16:45:32 -08:00 committed by GitHub
parent 241ebd7ec9
commit aa3e04797f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
});