- connect
Connects to an MQTT server using the specified options.The server to connect to
is specified on the
- close
Close the client Releases all resource associated with the client. After the
client has been closed
- disconnect
Disconnects from the server. The client will wait for all MqttCallback methods
to complete. It will
- isConnected
Determines if this client is currently connected to the server.
- setCallback
Sets the callback listener to use for events that happen asynchronously.There
are a number of events
- subscribe
Subscribes to a one or more topics, which may include wildcards using a QoS of
1.
- publish
Publishes a message to a topic on the server and return once it is delivered.
This is a convenience
- unsubscribe
Requests the server unsubscribe the client from one or more topics. Unsubcribing
is the opposite of
- disconnectForcibly
Disconnects from the server forcibly to reset all the states. Could be useful
when disconnect attemp
- getClientId
Returns the client ID used by this client.All clients connected to the same
server or server farm mu
- getServerURI
Returns the address of the server used by this client, as a URI.The format is
the same as specified
- getTopic
Get a topic object which can be used to publish messages.An alternative method
that should be used i