Used for connection to a mqtt broker.
The homie_dart package does not contain an implementation of this abstract class!
Implement the mqtt logic yourselfe or use the
homie_dart_on_mqtt package instead (recommended)!
String lastWillTopic, Uint8List lastWillData, bool lastWillRetained, int lastWillQos) → Future< Null>
- Connects to the mqtt broker. The connection must respect the last will parameters. The connect method of each instance may only be called once. If it is called a second time on the same instance a StateError must be thrown.
) → Future< Null>
- Disconnects from the mqtt broker and cancels all subscriptions.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
String topic, Uint8List data, bool retained, int qos) → Future< Null>
topicwith respect to
retained. Awaiting the returned future should guarantee the publishing of the message to the broker with respect to the quality of service
qosof 0 does not guarentee anything and might return immediately. If this is called while disconnecting, a DisconnectingError should be thrown
String topic, int qos) → Future< Stream< Uint8List>>
topic. Awaiting the returned future gives a Stream whichs events are incoming messages on the topic. If this is called while disconnecting, a DisconnectingError should be thrown.
) → String
Returns a string representation of this object.