Main Content
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, so you can examine the
same messages multiple times.mqttMsg
= peek(mqttClient
)
returns the most recent message from the specified topic.mqttMsg
= peek(mqttClient
,Topic=mqttTopic
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022a