Mqtt Toolkit - @octave_mqtt/flush
- : flush
(obj) - : flush
(obj, topic) Flush a MQTT client connection
Inputs
objA previously created octave_mqtt object
topicOptional topic to clear from queue.
Outputs
None
Examples
Open a client and flush the input
client = mqttclient("tcp://127.0.0.1"); flush(client);Open a client and flush the input of only ’test’ topics
client = mqttclient("tcp://127.0.0.1"); flush(client, "test");See also: mqttclient.