peek
Description
returns the most recent message from all subscribed topics for the specified MQTT client as
a timetable of messages. This function does not flush the messages from the buffer, so you
might view the same messages multiple times.mqttMsg = peek(mqttClient)
For improved performance while reading recent messages over an extended period of time:
returns the most recent message from the specified topic.mqttMsg = peek(mqttClient,Topic=mqttTopic)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022a