flush
Description
flush( clears all received messages
        from all subscribed topics in the specified MQTT client.  mqttClient)
flush(
        clears all received messages from the specified MQTT topic.mqttClient,Topic=mqttTopic)
Note that the read function
        also clears messages after reading them into MATLAB, but the peek function
        does not.
Examples
Input Arguments
Version History
Introduced in R2022a