We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14122b9 commit a4c563aCopy full SHA for a4c563a
book/src/03_5_3_mqtt.md
@@ -39,8 +39,8 @@ client.subscribe(subscribe_topic, QoS::AtLeastOnce)
39
## Handling Incoming Messages
40
41
42
-The `message_event` parameter in the handler closure is of type `Result<Event<EspMqttMessage>`.
43
-Since we're only interested in processing successfully received messages, we can make use of deep pattern matching into the closure:
+The `message_event` parameter in the handler closure is of type `EspMqttEvent`, which has a `payload()` method to access the `EventPayload`
+Since we're only interested in processing successfully received messages:
44
45
```rust
46
{{#include ../../intro/mqtt/exercise/examples/solution_publ_rcv.rs:mqtt_client}}
0 commit comments