Mqtt Toolkit - @octave_mqtt/flush


: flush (obj)
: flush (obj, topic)

Flush a MQTT client connection

Inputs

obj

A previously created octave_mqtt object

topic

Optional 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.