IMqttConnectionHandler class abstract

The connection handler interface class

Implementers

Constructors

IMqttConnectionHandler()

Properties

autoReconnectInProgress bool
Auto reconnect in progress
getter/setter pair
connectionMessage MqttConnectMessage?
getter/setter pair
connectionStatus MqttClientConnectionStatus
The connection status
no setter
hashCode int
The hash code for this object.
no setterinherited
onAutoReconnect AutoReconnectCallback?
Auto reconnect callback
getter/setter pair
onAutoReconnected AutoReconnectCompleteCallback?
Auto reconnected callback
getter/setter pair
onBadCertificate bool Function(Object certificate)?
Callback function to handle bad certificate. if true, ignore the error.
getter/setter pair
onConnected ConnectCallback?
Successful connection callback
getter/setter pair
onDisconnected DisconnectCallback?
Unsolicited disconnection callback
getter/setter pair
port int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server String?
getter/setter pair

Methods

close() → void
Closes a connection.
connect(String server, int port, MqttConnectMessage message) Future<MqttClientConnectionStatus>
Connects to a message broker The broker server to connect to The port to connect to The connect message to use to initiate the connection
disconnect() MqttConnectionState
Runs the disconnection process to stop communicating with a message broker.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerForAllSentMessages(MessageCallbackFunction sentMsgCallback) → void
Registers a callback to be executed whenever a message is sent by the connection handler.
registerForMessage(MqttMessageType msgType, MessageCallbackFunction msgProcessorCallback) → void
Register the specified callback to receive messages of a specific type. The type of message that the callback should be sent The callback function that will accept the message type
sendMessage(MqttMessage message) → void
Sends a message to a message broker.
stopListening() → void
Kills all listeners from old connections.
toString() String
A string representation of this object.
inherited
unRegisterForAllSentMessages(MessageCallbackFunction sentMsgCallback) → void
UnRegisters a callback that is registerd to be executed whenever a message is sent by the connection handler.
unRegisterForMessage(MqttMessageType msgType) → void
Unregisters the specified callbacks so it not longer receives messages of the specified type. The message type the callback currently receives

Operators

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