AppMQTT class
Properties
- client ↔ MqttServerClient?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onMQTTConnected ↔ dynamic Function(bool isReconnect)?
-
getter/setter pair
- onMQTTDisconnected ↔ dynamic Function()?
-
getter/setter pair
- onMQTTMessage ↔ dynamic Function(String topic, String payload)?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
[String? username, String? password]) → void -
disconnect(
) → void -
initializeMQTTClient(
{bool logging = kDebugMode, String? hostConfig, int? portConfig, bool? useWebSocket, int? keepAlivePeriod, bool? autoReconnect, bool setProtocolV311 = true}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnected(
) → void - The successful connect callback
-
onDisconnected(
) → void - The unsolicited disconnect callback
-
onReConnected(
) → void -
onSubscribed(
String topic) → void - The subscribed callback
-
subscribeTo(
String channel, {MqttQos mqttQos = MqttQos.atLeastOnce}) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribeTo(
String channel, {dynamic expectAcknowledge = false}) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited