mqtt_helper library

A Flutter package that simplifies MQTT integration, reducing boilerplate code and providing a convenient layer on top of mqtt_client.

Classes

EventModel
The EventModel class represents a data model for events, consisting of a topic and a payload. This class provides a structured way to work with events, making it easier to create, manipulate, and compare events.
MqttCallbacks
A class that holds callback functions for MQTT events.
MqttConfig
Represents a configuration for an MQTT connection.
MqttHelper
A helper class for working with MQTT connections and events.
MqttHelperClient
A helper class for connecting to an MQTT broker using the mqtt_client package.
ProjectConfig
Represents a project configuration.
ServerConfig
Represents a server configuration.
WebSocketConfig
Represents a WebSocket configuration.

Typedefs

DynamicMap = Map<String, dynamic>
A map with string keys and dynamic values. This type alias is used to represent a map where the keys are strings and the values can be of any type.
MqttHelperPayload = List<MqttReceivedMessage<MqttMessage?>>
A list of MQTT received messages with optional MQTT messages. This type alias is used to represent a list of MQTT received messages, where each message may or may not contain an MQTT message.