MqttClientTopicFilter class

This class allows specific topics to be listened for. It essentially acts as a bandpass filter for the topics you are interested in if you subscribe to more than one topic or use wildcard topics. Simply construct it, and listen to its message stream rather than that of the client. Note this class will only filter valid receive topics so if you filter on wildcard topics for instance, which you should only subscribe to, it will always generate a no match.

Constructors

MqttClientTopicFilter(String _topic, Stream<List<MqttReceivedMessage<MqttMessage>>> _clientUpdates)
Construction

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
topic String
The topic on which to filter
read-only
updates Stream<List<MqttReceivedMessage<MqttMessage>>>
The stream on which all matching topic updates are published to
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited