MqttSubscription

Defines the fields for an MQTT subscription.

Description

The MqttSubscription class defines the main fields for an MQTT subscription.

Constructors

Create new instance of subscription

MqttSubscription({required this.topic, required this.filter, required this.options, required this.listener});

Fields

topic

Topic

topic: String

filter

Filter

filter: bool

options

Subscription options

options: Map<String, dynamic>

listener

Listener

listener: IMqttMessageListener